#													#
# Tetris bootleg driver									#
#													#

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

GAMENAME    " Tetris (bootleg)"
DIRECTORY   TETRISBL
CPSTYPE     SYSTEM16
DATE		1987

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

0x00000000 0x0003FFFF CODE
0x00c40000 0x00c4FFFF EXTRARAM
0x00418000 0x0041803F EXTRARAM2
0x00FF0000 0x00FFFFFF ONBOARDRAM
	
[dataReadRegions]

0x00000000 0x0003FFFF CODE
0x00400000 0x0040FFFF TILERAM
0x00410000 0x00410FFF TEXTRAM
0x00418000 0x0041803F EXTRARAM2
0x00440000 0x00440FFF SPRITERAM
0x00840000 0x00840FFF PALETTERAM
0x00c40000 0x00c40FFF EXTRARAM
0x00c41000 0x00c4FFFF IORAM
0x00c80000 0x00c8FFFF EXTRARAM3
0x00FE0000 0x00FEFFFF Z80COM
0x00FF0000 0x00FFFFFF ONBOARDRAM


[dataWriteRegions]

0x00400000 0x0040FFFF TILERAM
0x00410000 0x00410FFF TEXTRAM
0x00418000 0x0041803F EXTRARAM2
0x00440000 0x00440FFF SPRITERAM
0x00840000 0x00840FFF PALETTERAM
0x00c40000 0x00c4FFFF EXTRARAM
0x00c80000 0x00c8FFFF EXTRARAM3
0x00FE0000 0x00FEFFFF Z80COM
0x00FF0000 0x00FFFFFF ONBOARDRAM

#                                         #
# Protection                              #
#                                         #
[protection]


#                      #
# Graphics information #
#                      #
[graphics]

[chars]
ROMSIZE 0x30000
MERGE scr01.rom scr02.rom scr03.rom 0x10000 0x00000

[sprites]
BANKS		2
BANKSIZE	0x10000	
ROMSIZE		0x20000
BANKTABLE	 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
MERGE		obj0-e.rom obj0-o.rom	0x10000 0x00000 


#                     #
# program information #
#                     #
[program]
MERGE  rom2.bin rom1.bin 0x10000 0x00000

[patch]
0xba6 0x71
0xba7 0x4e

[patchend]
#                        #
# The game configuration #
#                        #
[configuration]
reg_p1ctrl					0x0002
reg_p2ctrl					0x0006
reg_sw1						0x1002
reg_sw2						0x1000
reg_gamecf					0x0000
spritelistEndWidthMarker	0xFFFF
reg_bg_scrollx				0x0e9a 
reg_bg_scrolly				0x0e92
reg_fg_scrollx				0x0e98
reg_fg_scrolly				0x0E90
reg_fg_pages				0x0038
reg_bg_pages				0x0028
reg_scroll_x_shift			0x140
reg_scroll_y_shift			0x100
sprxoffset					0x40


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


[End]
[verifyRoms]
[End]
