mirror of
https://github.com/holub/mame
synced 2025-04-28 11:11:48 +03:00
here too, there are probably more cases of this too (nw)
This commit is contained in:
parent
e8bcb2b7b8
commit
ab9039f120
@ -87,9 +87,7 @@ WRITE8_MEMBER(thedeep_state::thedeep_protection_w)
|
|||||||
m_rombank = new_rombank;
|
m_rombank = new_rombank;
|
||||||
rom = memregion("maincpu")->base();
|
rom = memregion("maincpu")->base();
|
||||||
membank("bank1")->set_base(rom + 0x10000 + m_rombank * 0x4000);
|
membank("bank1")->set_base(rom + 0x10000 + m_rombank * 0x4000);
|
||||||
/* there's code which falls through from the fixed ROM to bank #1, I have to */
|
|
||||||
/* copy it there otherwise the CPU bank switching support will not catch it. */
|
|
||||||
memcpy(rom + 0x08000, rom + 0x10000 + m_rombank * 0x4000, 0x4000);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -197,9 +195,6 @@ void thedeep_state::thedeep_maincpu_bankswitch(UINT8 bank_trig)
|
|||||||
m_rombank = new_rombank;
|
m_rombank = new_rombank;
|
||||||
rom = memregion("maincpu")->base();
|
rom = memregion("maincpu")->base();
|
||||||
membank("bank1")->set_base(rom + 0x10000 + m_rombank * 0x4000);
|
membank("bank1")->set_base(rom + 0x10000 + m_rombank * 0x4000);
|
||||||
/* there's code which falls through from the fixed ROM to bank #1, I have to */
|
|
||||||
/* copy it there otherwise the CPU bank switching support will not catch it. */
|
|
||||||
memcpy(rom + 0x08000, rom + 0x10000 + m_rombank * 0x4000, 0x4000);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user