#                                                           #
# Street Fighter II - The World Warrior (US 910214)         #
#                                                           #
# Driver by D.W. Raingeard                                  #
# cinati@caramail.com                                       #

#                      #
# The name of the game #
#                      #
[general]

GAMENAME    " Street Fighter II - The World Warrior (US 910214) "
DIRECTORY   SF2B
PARENT      SF2
CPSTYPE     CPS1
DATE		1991

#                 #
# The memory map  #
#                 #
[programRegions]

0x000000  0x0FFFFF  MAINROM
0x900000  0x901fff  PALETTERAM 
0x920000  0x920800  ROWSCROLLRAM
0x900000  0x92ffff  VIDEORAM
0xff0000  0xfFFFFF  MAINRAM

[dataReadByteRegions]

0x000000  0x0FFFFF  MAINROM
0x800000  0x800001  INPUTPORT2
0x800010  0x800011  INPUTPORT2
0x800018  0x80001f  INPUTPORT1
0x800176  0x800177  INPUTPORT5
0x8001fc  0x8001fd  INPUTPORT5
0x800100  0x8001ff  VIDEOPORTS
0x900000  0x901fff  PALETTERAM 
0x920000  0x920800  ROWSCROLLRAM
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM  1
0x915800  0x930000  EXTRARAM  2

[dataReadWordRegions]

0x000000  0x0FFFFF  MAINROM
0x800000  0x800001  INPUTPORT2
0x800010  0x800011  INPUTPORT2
0x800018  0x80001f  INPUTPORT1
0x800176  0x800177  INPUTPORT5
0x8001fc  0x8001fd  INPUTPORT5
0x800100  0x8001ff  VIDEOPORTS
0x900000  0x901fff  PALETTERAM 
0x920000  0x920800  ROWSCROLLRAM
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM  1
0x915800  0x930000  EXTRARAM  2

[dataWriteByteRegions]

0x800100  0x8001ff  VIDEOPORTS
0x900000  0x901fff  PALETTERAM 
0x920000  0x920800  ROWSCROLLRAM
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM 1
0x915800  0x930000  EXTRARAM 2

[dataWriteWordRegions]

0x800100  0x8001ff  VIDEOPORTS
0x900000  0x901fff  PALETTERAM 
0x920000  0x920800  ROWSCROLLRAM
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM 1
0x915800  0x930000  EXTRARAM 2

#                                         #
# Protection                              #
#                                         #
[protection]

# If port(PORT) is read, returns (VALUE) #
PORT    0x48
VALUE   0x0407

#                      #
# Graphics information #
#                      #
[graphics]

# the total size of the graphics roms #
TOTAL 0x600000

# Path                     Size    Where  #
LOAD8 sf2gfx01.rom 0x80000 0x000000
LOAD8 sf2gfx10.rom 0x80000 0x080000
LOAD8 sf2gfx20.rom 0x80000 0x100000
LOAD8 sf2gfx02.rom 0x80000 0x180000
LOAD8 sf2gfx11.rom 0x80000 0x200000
LOAD8 sf2gfx21.rom 0x80000 0x280000
LOAD8 sf2gfx03.rom 0x80000 0x300000
LOAD8 sf2gfx12.rom 0x80000 0x380000
LOAD8 sf2gfx22.rom 0x80000 0x400000
LOAD8 sf2gfx04.rom 0x80000 0x480000
LOAD8 sf2gfx13.rom 0x80000 0x500000
LOAD8 sf2gfx23.rom 0x80000 0x580000


#               Number of tiles Base addr   Decode info #
DECODECHARS     0x1000          0x140000    0x300000
DECODESPRITES   0xa000          0x000000    0x300000 0x180000
DECODESCROLL2   0x4000          0x100000    0x300000 0x180000
DECODESCROLL3   0x0400          0x120000    0x300000 0x180000 


#                     #
# program information #
#                     #
[program]
ROMSIZE 0x100000

# Type of load path 1                    path 2                       Size    where #
LOADROMEVENODD sf2e_30b.rom sf2u.37b        0x20000 0x00000
LOADROMEVENODD sf2e_31b.rom sf2e_38b.rom    0x20000 0x40000
LOADROMEVENODD sf2_28b.rom sf2_35b.rom      0x20000 0x80000
LOADROMEVENODD sf2_29b.rom sf2_36b.rom      0x20000 0xc0000


#                        #
# The game configuration #
#                        #
[configuration]

LAYERCONTROL    0x54                # Layer control port                     #
SCROLL1BASECODE 0x0000              # scroll1 tile base                      #
SCROLL1CODEMASK 0x1000              # scroll1 tile mask(=number of tiles)    #
SCROLL2BASECODE 0x0000              # scroll2 tile base                      #
SCROLL2CODEMASK 0x8000              # scroll2 tile mask(=number of tiles)    #
SCROLL3BASECODE 0x0000              # scroll3 tile base                      #
SCROLL3CODEMASK 0x0400              # scroll3 tile mask(=number of tiles)    #
PRIORITYMASKS   0x52 0x50 0x4e 0x4c # the ports where to read the priorities #
LAYERENABLE 0x08 0x10 0x02 0x00
FORCESCROLLPRIORITY 0xff            # Hack to fix some priority problems btw #
                                    # scroll2 and 3. The folowing values are #
                                    # valid:                                 #
                                    # 0xff: no hack                          #
                                    # 0x01: scroll3 first. Scroll2 after.    #
                                    # 0x00: scroll2 first  Scroll3 after.    #
FORCESCROLL2ON 1                    # 0=no 1=yes #

[z80]
TOTAL 0x10000
LOAD8 sf2_09.rom 0x10000 0x000000 # main rom and banks #

[samples]
TOTAL 0x40000
LOAD8 sf2_18.rom  0x20000 0x00000
LOAD8 sf2_19.rom  0x20000 0x20000


[End]
[verifyRoms]
sf2gfx01.rom	0xba529b4f
sf2gfx10.rom	0x14b84312
sf2gfx20.rom	0xc1befaa8
sf2gfx02.rom	0x22c9cc8e
sf2gfx11.rom	0x2c7e2229
sf2gfx21.rom	0x994bfa58
sf2gfx03.rom	0x4b1b33a8
sf2gfx12.rom	0x5e9cd89a
sf2gfx22.rom	0x0627c831
sf2gfx04.rom	0x57213be8
sf2gfx13.rom	0xb5548f17
sf2gfx23.rom	0x3e66ad9d
sf2e_30b.rom	0x57bd7051
sf2u.37b	0x4a54d479
sf2e_31b.rom	0xa673143d
sf2e_38b.rom	0x4c2ccef7
sf2_28b.rom	0x4009955e
sf2_35b.rom	0x8c1f3994
sf2_29b.rom	0xbb4af315
sf2_36b.rom	0xc02a13eb
[End]
