mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
mark rev. 32216 as a temp hack, to reduce tagmap lookups. nw.
This commit is contained in:
parent
100082ceda
commit
fcaf4cc1e1
@ -665,7 +665,8 @@ WRITE8_MEMBER(device_nes_cart_interface::write_h)
|
|||||||
|
|
||||||
void device_nes_cart_interface::pcb_start(running_machine &machine, UINT8 *ciram_ptr, bool cart_mounted)
|
void device_nes_cart_interface::pcb_start(running_machine &machine, UINT8 *ciram_ptr, bool cart_mounted)
|
||||||
{
|
{
|
||||||
|
// HACK: to reduce tagmap lookups for PPU-related IRQs, we add a hook to the
|
||||||
|
// main NES CPU here, even if it does not belong to this device.
|
||||||
m_maincpu = machine.device<cpu_device>("maincpu");
|
m_maincpu = machine.device<cpu_device>("maincpu");
|
||||||
|
|
||||||
if (cart_mounted) // disksys expansion can arrive here without the memory banks!
|
if (cart_mounted) // disksys expansion can arrive here without the memory banks!
|
||||||
|
@ -232,6 +232,9 @@ protected:
|
|||||||
dynamic_buffer m_vram;
|
dynamic_buffer m_vram;
|
||||||
dynamic_buffer m_battery;
|
dynamic_buffer m_battery;
|
||||||
UINT8 *m_ciram;
|
UINT8 *m_ciram;
|
||||||
|
|
||||||
|
// HACK: to reduce tagmap lookups for PPU-related IRQs, we add a hook to the
|
||||||
|
// main NES CPU here, even if it does not belong to this device.
|
||||||
cpu_device *m_maincpu;
|
cpu_device *m_maincpu;
|
||||||
|
|
||||||
// these are specific of some boards but must be accessible from the driver
|
// these are specific of some boards but must be accessible from the driver
|
||||||
|
Loading…
Reference in New Issue
Block a user