mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
cclimber.c: fixed MT06029 (nw)
yamato has one more ROM at 0x7000 - 0x7fff that must be taken care of. I opted for using the same decode for yamato2 too, even if 0x6000 was enough for it, to avoid more code duplication.
This commit is contained in:
parent
177911ca81
commit
fcc376de15
@ -375,6 +375,10 @@ static ADDRESS_MAP_START( yamato_map, AS_PROGRAM, 8, cclimber_state )
|
||||
AM_RANGE(0xba00, 0xba00) AM_READ_PORT("START") /* maybe a mirror of b800 */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( yamato_decrypted_opcodes_map, AS_DECRYPTED_OPCODES, 8, cclimber_state )
|
||||
AM_RANGE(0x0000, 0x7fff) AM_ROM AM_SHARE("decrypted_opcodes")
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( toprollr_map, AS_PROGRAM, 8, cclimber_state )
|
||||
AM_RANGE(0x0000, 0x5fff) AM_ROMBANK("bank1")
|
||||
AM_RANGE(0x6000, 0x6bff) AM_RAM AM_SHARE("ram")
|
||||
@ -1056,7 +1060,7 @@ static MACHINE_CONFIG_DERIVED( yamato, root )
|
||||
MCFG_CPU_MODIFY("maincpu")
|
||||
MCFG_CPU_PROGRAM_MAP(yamato_map)
|
||||
MCFG_CPU_IO_MAP(yamato_portmap)
|
||||
MCFG_CPU_DECRYPTED_OPCODES_MAP(decrypted_opcodes_map)
|
||||
MCFG_CPU_DECRYPTED_OPCODES_MAP(yamato_decrypted_opcodes_map)
|
||||
|
||||
MCFG_CPU_ADD("audiocpu", Z80, 3072000) /* 3.072 MHz ? */
|
||||
MCFG_CPU_PROGRAM_MAP(yamato_audio_map)
|
||||
@ -2415,7 +2419,7 @@ DRIVER_INIT_MEMBER(cclimber_state,yamato)
|
||||
{ 0x20,0xa0,0x28,0xa8 }, { 0x00,0x08,0x20,0x28 } /* ...1...1...1...1 */
|
||||
};
|
||||
|
||||
sega_decode(memregion("maincpu")->base(), m_decrypted_opcodes, 0x6000, convtable);
|
||||
sega_decode(memregion("maincpu")->base(), m_decrypted_opcodes, 0x8000, convtable);
|
||||
|
||||
save_item(NAME(m_yamato_p0));
|
||||
save_item(NAME(m_yamato_p1));
|
||||
|
Loading…
Reference in New Issue
Block a user