#												#
# Hang-On driver								#
#												#

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

GAMENAME    " Hang-On "
DIRECTORY   HANGON
CPSTYPE     SYSTEM16
DATE		1985

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

0x00000000 0x0003FFFF CODE
0x00200000 0x0020FFFF EXTRARAM
0x00FF0000 0x00FFFFFF ONBOARDRAM
	
[dataReadRegions]

0x00000000 0x0003FFFF CODE
0x00200000 0x0020FFFF EXTRARAM
0x00400000 0x0040FFFF TILERAM
0x00410000 0x00410FFF TEXTRAM
0x00600000 0x00600FFF SPRITERAM
0x00a00000 0x00a00FFF PALETTERAM
0x00c68000 0x00c68fff SHAREDRAM 1
0x00c7e000 0x00c7ffff SHAREDRAM 2
0x00e00002 0x00e00003 COINCONTROL
0x00e01000 0x00e0FFFF IORAM



[dataWriteRegions]

0x00200000 0x0020FFFF EXTRARAM
0x00400000 0x0040FFFF TILERAM
0x00410000 0x00410FFF TEXTRAM
0x00600000 0x00600FFF SPRITERAM
0x00a00000 0x00a00FFF PALETTERAM
0x00c68000 0x00c68fff SHAREDRAM 1
0x00c7e000 0x00c7ffff SHAREDRAM 2
0x00e00002 0x00e00003 COINCONTROL

[cpu2]
[programRegions]

0x00000000 0x0003FFFF CODE
0x00c68000 0x00c68FFF SHAREDRAM 1	
0x00c7e000 0x00c7FFFF SHAREDRAM 2

[dataReadRegions]

0x00000000 0x0003FFFF CODE
0x00c68000 0x00c68FFF SHAREDRAM 1	
0x00c7e000 0x00c7FFFF SHAREDRAM 2


[dataWriteRegions]

0x00c68000 0x00c68FFF SHAREDRAM 1	
0x00c7c000 0x00c7FFFF SHAREDRAM 2

#                                         #
# Protection                              #
#                                         #
[protection]


#                      #
# Graphics information #
#                      #
[graphics]

[chars]
ROMSIZE 0x18000
MERGE  6841.rom 6842.rom 6843.rom 0x08000 0x00000

[sprites]
BANKS		8
BANKSIZE	0x10000	
ROMSIZE		0x80000
BANKTABLE	0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x00 0x06
MERGE 6820.rom 6819.rom 0x8000 0x00000
MERGE 6822.rom 6821.rom 0x8000 0x10000
MERGE 6824.rom 6823.rom 0x8000 0x20000
MERGE 6826.rom 6825.rom 0x8000 0x30000
MERGE 6828.rom 6827.rom 0x8000 0x40000
MERGE 6830.rom 6829.rom 0x8000 0x50000
MERGE 6846.rom 6845.rom 0x8000 0x60000



#                     #
# program information #
#                     #
[program]
MERGE 6918.rom  6916.rom		0x08000 0x00000
MERGE 6917.rom  6915.rom		0x08000 0x10000

[patch]

[patchend]

[CPU2program]
MERGE 6920.rom	6919.rom		0x08000 0x00000

[CPU2patch]

[patchend]

[road]
ROMSIZE 0x40000
6840.rom 0x8000

#                        #
# The game configuration #
#                        #
[configuration]
reg_p1ctrl					0x1000
reg_p2ctrl					0x0004
reg_sw1						0x000a
reg_sw2						0x000c
reg_gamecf					0x0000
spritelistEndWidthMarker	0xFFFF
reg_fg_scrollx				0x0ff8
reg_bg_scrollx				0x0ffa
reg_fg_scrolly				0x0f25
reg_bg_scrolly				0x0f27
reg_fg_pages				0x0e9f
reg_bg_pages				0x0E9d
reg_scroll_x_shift			0x140
reg_scroll_y_shift			0x100
sprxoffset					0xbc


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


[End]
[verifyRoms]
[End]
