#                                     #
# Mercs driver (900302)               #
#                                     #
# (Preliminary)                       #

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

GAMENAME    " Mercs "
DIRECTORY   MERCS
CPSTYPE     CPS1
DATE		1990

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

0x000000  0x0FFFFF  MAINROM
0xff0000  0xfFFFFF  MAINRAM

[dataReadByteRegions]

0x000000  0x0FFFFF  MAINROM
0x800000  0x800001  INPUTPORT2
0x800010  0x800011  INPUTPORT2
0x800018  0x80001f  INPUTPORT1
0x800100  0x8001ff  VIDEOPORTS
0x914000  0x915fff  PALETTERAM 
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
0x800100  0x8001ff  VIDEOPORTS
0x914000  0x915fff  PALETTERAM 
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM  1
0x915800  0x930000  EXTRARAM  2

[dataWriteByteRegions]

0x800100  0x8001ff  VIDEOPORTS
0x914000  0x915fff  PALETTERAM 
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM 1
0x915800  0x930000  EXTRARAM 2

[dataWriteWordRegions]

0x800100  0x8001ff  VIDEOPORTS
0x914000  0x915fff  PALETTERAM 
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    0x60
VALUE   0x0402

#                      #
# Graphics information #
#                      #
[graphics]

# the total size of the graphics roms #
TOTAL 0x400000
# Path                     Size    Where  #
LOAD8 so2_gfx2.rom 0x80000 0x000000
LOADROMEVENODD so2_20.rom so2_10.rom 0x20000 0x080000
LOAD8 so2_gfx6.rom 0x80000 0x100000
LOADROMEVENODD so2_24.rom so2_14.rom 0x20000 0x180000
LOAD8 so2_gfx4.rom 0x80000 0x200000
LOADROMEVENODD so2_22.rom so2_12.rom 0x20000 0x280000
LOAD8 so2_gfx8.rom 0x80000 0x300000
LOADROMEVENODD so2_26.rom so2_16.rom 0x20000 0x380000

#               Number of tiles Base addr   Decode info #
DECODECHARS     0x4000          0x000000    0x200000
DECODESPRITES   0x6000          0x000000    0x200000 0x100000
DECODESCROLL2   0x8000          0x000000    0x200000 0x100000
DECODESCROLL3   0x2000          0x000000    0x200000 0x100000 


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

# Type of load path 1                    	path 2                       Size    where #
LOADROMEVENODD so2_30e.rom so2_35e.rom 	0x20000 0x00000
LOADROMEVENODD so2_31e.rom so2_36e.rom 	0x20000 0x40000
LOADROM16SWAP  so2_32.rom 			0x80000 0x80000



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

LAYERCONTROL    0x6c                # Layer control port                     #
SCROLL1BASECODE 0x0000              # scroll1 tile base                      #
SCROLL1CODEMASK 0x4000              # 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 0x2000              # scroll3 tile mask(=number of tiles)    #
PRIORITYMASKS   0x66 0x70 0x68 0x72 # the ports where to read the priorities #
LAYERENABLE 0x02 0x04 0x08 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 0                    # 0=no 1=yes #

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

[samples]
TOTAL 0x40000
LOAD8 so2_18.rom  0x20000 0x00000
LOAD8 so2_19.rom  0x20000 0x20000


[End]
[verifyRoms]
so2_gfx2.rom	0x597c2875
so2_20.rom	0x8ca751a3
so2_10.rom	0xe9f569fd
so2_gfx6.rom	0xaa6102af
so2_24.rom	0x3f254efe
so2_14.rom	0xf5a8905e
so2_gfx4.rom	0x912a9ca0
so2_22.rom	0xfce9a377
so2_12.rom	0xb7df8a06
so2_gfx8.rom	0x839e6869
so2_26.rom	0xf3aa5a4a
so2_16.rom	0xb43cd1a8
so2_30e.rom	0xe17f9bf7
so2_35e.rom	0x78e63575
so2_31e.rom	0x51204d36
so2_36e.rom	0x9cfba8b4
[End]
