#                                     #
# Varth driver (Japan)                #
#                                     #

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

GAMENAME    " Varth (Japan) "
DIRECTORY   VARTHJ
PARENT      VARTH
CPSTYPE     CPS1
DATE		1992

#                 #
# 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
0x91c000  0x91dfff  PALETTERAM 
0x91e000  0x91e800  ROWSCROLLRAM
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM  1

[dataReadWordRegions]

0x000000  0x0FFFFF  MAINROM
0x800000  0x800001  INPUTPORT2
0x800010  0x800011  INPUTPORT2
0x800018  0x80001f  INPUTPORT1
0x800100  0x8001ff  VIDEOPORTS
0x91c000  0x91dfff  PALETTERAM 
0x91e000  0x91e800  ROWSCROLLRAM
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM  1

[dataWriteByteRegions]

0x800100  0x8001ff  VIDEOPORTS
0x91c000  0x91dfff  PALETTERAM 
0x91e000  0x91e800  ROWSCROLLRAM
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM 1

[dataWriteWordRegions]

0x800100  0x8001ff  VIDEOPORTS
0x91c000  0x91dfff  PALETTERAM 
0x91e000  0x91e800  ROWSCROLLRAM
0x900000  0x92ffff  VIDEORAM
0xf1c006  0xf1c007  EEPROM
0xff0000  0xfFFFFF  MAINRAM
0x860000  0x8603ff  EXTRARAM 1

#                                         #
# Protection                              #
#                                         #
[protection]

# If port(PORT) is read, returns (VALUE) #
PORT    0xff
VALUE   0xffff
MULTIPLY 0x4e 0x4c 0x4a 0x48
#                      #
# Graphics information #
#                      #
[graphics]

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

# Path                     Size    Where  #
LOAD8 va_gfx1.rom 0x80000 0x000000
LOAD8 va_gfx5.rom 0x80000 0x080000
LOAD8 va_gfx3.rom 0x80000 0x100000
LOAD8 va_gfx7.rom 0x80000 0x180000

#               Number of tiles Base addr   Decode info #
DECODECHARS     0x1000          0x050000    0x100000
DECODESPRITES   0x4000          0x000000    0x100000 0x080000
DECODESCROLL2   0x4000          0x000000    0x100000 0x080000
DECODESCROLL3   0x0200          0x060000    0x100000 0x080000 


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

# Type of load path 1                    path 2                       Size    where #
LOADROMEVENODD vaj36b.bin  vaj42b.bin  0x20000 0x00000
LOADROMEVENODD vaj37b.bin  vaj43b.bin  0x20000 0x40000
LOADROMEVENODD vaj34b.bin  vaj40b.bin  0x20000 0x80000
LOADROMEVENODD vaj35b.bin  vaj41b.bin  0x20000 0xc0000



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

LAYERCONTROL    0x60                # Layer control port                     #
SCROLL1BASECODE 0x0000              # scroll1 tile base                      #
SCROLL1CODEMASK 0x1000              # scroll1 tile mask(=number of tiles)    #
SCROLL2BASECODE 0x0000              # scroll2 tile base                      #
SCROLL2CODEMASK 0x4000              # scroll2 tile mask(=number of tiles)    #
SCROLL3BASECODE 0x0000              # scroll3 tile base                      #
SCROLL3CODEMASK 0x0200              # scroll3 tile mask(=number of tiles)    #
PRIORITYMASKS   0x6e 0x6c 0x6a 0x68 # the ports where to read the priorities #
LAYERENABLE 0x20 0x06 0x06 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 va_09.rom 0x10000 0x000000 # main rom and banks #

[samples]
TOTAL 0x40000
LOAD8 va_18.rom  0x20000 0x00000
LOAD8 va_19.rom  0x20000 0x20000


[End]
[verifyRoms]
va_gfx1.rom	0x0b1ace37
va_gfx5.rom	0xb1fb726e
va_gfx3.rom	0x44dfe706
va_gfx7.rom	0x4c6588cd
vaj36b.bin	0x1d798d6a
vaj42b.bin	0x0f720233
vaj37b.bin	0x24414b17
vaj43b.bin	0x34b4b06c
vaj34b.bin	0x87c79aed
vaj40b.bin	0x210b4bd0
vaj35b.bin	0x6b0da69f
vaj41b.bin	0x6542c8a4
[End]
