#													#
# Wonder Boy III - Monster Lair (bootleg) driver    #
#													#

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

GAMENAME    " Wonder Boy III - Monster Lair (bootleg) "
DIRECTORY   WB3BL
CPSTYPE     SYSTEM16
DATE		1988

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

0x00000000 0x0003FFFF CODE
0x003f0000 0x003fFFFF EXTRARAM2
0x00c40000 0x00c40FFF EXTRARAM
0x00FF0000 0x00FFFFFF ONBOARDRAM
	
[dataReadRegions]

0x00000000 0x0003FFFF CODE
0x003f0000 0x003fFFFF EXTRARAM2
0x00400000 0x0040FFFF TILERAM
0x00410000 0x00410FFF TEXTRAM
0x00440000 0x00440FFF SPRITERAM
0x00840000 0x00840FFF PALETTERAM
0x00c40000 0x00c40FFF EXTRARAM
0x00c41000 0x00c4FFFF IORAM
0x00df0000 0x00dfFFFF EXTRARAM3
0x00FE0000 0x00FEFFFF Z80COM
0x00FF0000 0x00FFFFFF ONBOARDRAM


[dataWriteRegions]

0x003f0000 0x003fFFFF EXTRARAM2
0x00400000 0x0040FFFF TILERAM
0x00410000 0x00410FFF TEXTRAM
0x00440000 0x00440FFF SPRITERAM
0x00840000 0x00840FFF PALETTERAM
0x00c40000 0x00c40FFF EXTRARAM
0x00df0000 0x00dfFFFF EXTRARAM3
0x00FE0000 0x00FEFFFF Z80COM
0x00FF0000 0x00FFFFFF ONBOARDRAM



#                                         #
# Protection                              #
#                                         #
[protection]


#                      #
# Graphics information #
#                      #
[graphics]

[chars]
ROMSIZE 0x30000
MERGE wb3_14 wb3_15 wb3_16 0x10000 0x00000

[sprites]
BANKS		8
BANKSIZE	0x10000	
ROMSIZE		0x80000
BANKTABLE	4 0 2 0 6 0 0 6 0 0 0 4 0 2 0 0
MERGE WB3_06 WB3_12	0x10000 0x00000 
MERGE WB3_07 WB3_13 0x10000 0x20000
MERGE WB3_08 WB3_10 0x10000 0x40000
MERGE WB3_09 WB3_11 0x10000 0x60000


#                     #
# program information #
#                     #
[program]
MERGE WB3_03 WB3_05	0x10000 0x00000
MERGE WB3_02 WB3_04	0x10000 0x20000

[patch]
0x17058 0xb9 
0x17059 0x4e 
0x1705a 0x00 
0x1705b 0x00 
0x1705d 0x09 
0x1705c 0xdc 
0x1705f 0x4e 
0x1705e 0xf9 
0x17061 0x00 
0x17060 0x01 
0x17063 0x70 
0x17062 0xe0 
0x1a3b 0x31 
0x1a3a 0x7c 
0x1a3d 0x80 
0x1a3c 0x00 
0x23df9 0x14 
0x23df8 0x41 
0x23dfa 0x10 
0x23dfd 0x14 
0x23dff 0x1c 


#                        #
# The game configuration #
#                        #
[configuration]
reg_p1ctrl					0x0002
reg_p2ctrl					0x0006
reg_sw1						0x1002
reg_sw2						0x1000
reg_gamecf					0x0000
spritelistEndWidthMarker	0xFFFF
reg_bg_scrollx				0xc038
reg_bg_scrolly				0xc03c
reg_fg_scrollx				0xc030
reg_fg_scrolly				0xc032
reg_fg_pages				0x0ff6
reg_bg_pages				0x0ff4
reg_scroll_x_shift			0x140
reg_scroll_y_shift			0x100
sprxoffset					0xb8


[z80]
TOTAL 0x8000
LOAD8 epr12127.a10 0x8000 0x000000


[End]
[verifyRoms]
[End]
