#                                     #
# Willow(Japan, japanese) driver      #
#                                     #

[general]

GAMENAME  " Willow (Japan) "
DIRECTORY WILLOWJ
PARENT    WILLOW
CPSTYPE     CPS1
DATE		1989

[programRegions]

0x000000  0x0FFFFF  MAINROM
0xff0000  0xfFFFFF  MAINRAM

[dataReadByteRegions]

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

[dataWriteByteRegions]

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

[dataWriteWordRegions]

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

[protection]

PORT    0xff
VALUE   0xff


[graphics]

TOTAL 0x300000

LOAD8 WL_GFX1.ROM   0x80000 0x000000
LOAD8 WL_GFX5.ROM   0x80000 0x080000
LOAD8 WL_GFX3.ROM   0x80000 0x100000
LOAD8 WL_GFX7.ROM   0x80000 0x180000
LOAD8 WL_20.ROM     0x20000 0x200000
LOAD8 WL_10.ROM     0x20000 0x220000
LOAD8 WL_22.ROM     0x20000 0x240000
LOAD8 WL_12.ROM     0x20000 0x260000
LOAD8 WL_24.ROM     0x20000 0x280000
LOAD8 WL_14.ROM     0x20000 0x2a0000
LOAD8 WL_26.ROM     0x20000 0x2c0000
LOAD8 WL_16.ROM     0x20000 0x2e0000

DECODECHARS     0x1000  0x0f0000 0x100000 
DECODESPRITES   0x2800  0x000000 0x100000   0x080000 
DECODESCROLL2A  0x2000  0x200000 0x00000    0x20000     0x40000     0x60000     0x80000 
DECODESCROLL3   0x400   0x050000 0x100000   0x080000 

[program]
ROMSIZE 0x100000

LOADROMEVENODD WL36.bin  WL42.bin   0x20000 0x00000
LOADROMEVENODD WL37.bin  WL43.bin   0x20000 0x40000
LOADROM16SWAP  WL_32.ROM                         0x80000 0x80000


[configuration]

LAYERCONTROL    0x70
SCROLL1BASECODE 0x0000
SCROLL1CODEMASK 0x1000
SCROLL2BASECODE 0x0000
SCROLL2CODEMASK 0x2000
SCROLL3BASECODE 0x0600
SCROLL3CODEMASK 0x0400
PRIORITYMASKS   0x6e 0x6c 0x6a 0x68
LAYERENABLE 0x20 0x10 0x08 0x00
FORCESCROLLPRIORITY 0xff
FORCESCROLL2ON 0                    # 0=no 1=yes #

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

[samples]
TOTAL 0x40000
LOAD8 WL_18.ROM  0x20000 0x00000
LOAD8 WL_19.ROM  0x20000 0x20000


[End]

[verifyRoms]
WL_GFX1.ROM	0xc6f2abce
WL_GFX5.ROM	0xafa74b73
WL_GFX3.ROM	0x4aa4c6d3
WL_GFX7.ROM	0x12a0dc0b
WL_20.ROM	0x84992350
WL_10.ROM	0xb87b5a36
WL_22.ROM	0xfd3f89f0
WL_12.ROM	0x7da49d69
WL_24.ROM	0x6f0adee5
WL_14.ROM	0x9cf3027d
WL_26.ROM	0xf09c8ecf
WL_16.ROM	0xe35407aa
WL36.bin	0x2b0d7cbc
WL42.bin	0x1ac39615
WL37.bin	0x30a717fa
WL43.bin	0xd0dddc9e
WL_32.ROM	0xdfd9f643
[End]
