#									#
# Moon Walker (bootleg) driver						#
#									#

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

GAMENAME    " Moon Walker (bootleg) "
DIRECTORY   MOONWLKB
CPSTYPE     SYSTEM18
DATE		1990

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

0x00000000 0x000fFFFF CODE
0x00400000 0x0040FFFF TILERAM
0x00FE0000 0x00FEFFFF Z80COM
0x00FF0000 0x00FFFFFF ONBOARDRAM
	
[dataReadRegions]

0x00000000 0x000fFFFF CODE
0x00400000 0x0040FFFF TILERAM
0x00410000 0x00410FFF TEXTRAM
0x00440000 0x00440FFF SPRITERAM
0x00840000 0x00840FFF PALETTERAM
0x00c00000 0x00c0FFFF EXTRARAM
0x00c40000 0x00c4FFFF IORAM
0x00FE0000 0x00FEFFFF Z80COM
0x00FF0000 0x00FFFFFF ONBOARDRAM

[dataWriteRegions]

0x00000000 0x000fFFFF CODE
0x00400000 0x0040FFFF TILERAM
0x00410000 0x00410FFF TEXTRAM
0x00440000 0x00440FFF SPRITERAM
0x00840000 0x00840FFF PALETTERAM
0x00c00000 0x00c0FFFF EXTRARAM
0x00c40000 0x00c4FFFF IORAM
0x00FE0000 0x00FEFFFF Z80COM
0x00FF0000 0x00FFFFFF ONBOARDRAM

#                                         #
# Protection                              #
#                                         #
[protection]


#                      #
# Graphics information #
#                      #
[graphics]

[chars]
ROMSIZE 0xC0000
MERGE	moonwalk.b1 moonwalk.b2 moonwalk.b3 0x40000 0x00000

[sprites]
BANKS		8
BANKSIZE	0x040000	
ROMSIZE		0x200000
BANKTABLE	0x00 0x02 0x04 0x06 0x08 0x0A 0x0C 0x0E 0x10 0x12 0x14 0x16 0x18 0x1A 0x1C 0x1E
MERGE moonwalk.a11 moonwalk.b11	0x40000 0x000000 
MERGE moonwalk.a10 moonwalk.b10 0x40000 0x080000 
MERGE moonwalk.a9  moonwalk.b9  0x40000 0x100000 
MERGE moonwalk.a8  moonwalk.b8  0x40000 0x180000 


#                     #
# program information #
#                     #
[program]
MERGE moonwlkb.01 moonwlkb.05	0x10000 0x00000
MERGE moonwlkb.02 moonwlkb.06	0x10000 0x20000
MERGE moonwlkb.03 moonwlkb.07	0x10000 0x40000
MERGE moonwlkb.04 moonwlkb.08	0x10000 0x60000

[patch]
 
[patchend]
#                        #
# The game configuration #
#                        #
[configuration]
reg_p1ctrl					0x1002
reg_p2ctrl					0x1004
reg_sw1						0x2000
reg_sw2						0x2002
reg_gamecf					0x2000
spritelistEndWidthMarker	0x8000
reg_fg_scrollx				0x0E98
reg_fg_scrolly				0x0E90
reg_bg_scrollx				0x0E9a
reg_bg_scrolly				0x0E92
reg_fg_pages				0x0E80
reg_bg_pages				0x0E82
reg_scroll_x_shift			0x140
reg_scroll_y_shift			0x100
sprxoffset					0x40


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


[End]
[verifyRoms]
[End]
