Previous 199869 Revisions Next

r32262 Sunday 21st September, 2014 at 20:59:24 UTC by Fabio Priuli
mark rev. 32216 as a temp hack, to reduce tagmap lookups. nw.
[src/emu/bus/nes]nes_slot.c nes_slot.h

trunk/src/emu/bus/nes/nes_slot.c
r32261r32262
665665
666666void device_nes_cart_interface::pcb_start(running_machine &machine, UINT8 *ciram_ptr, bool cart_mounted)
667667{
668
668   // HACK: to reduce tagmap lookups for PPU-related IRQs, we add a hook to the
669   // main NES CPU here, even if it does not belong to this device.
669670   m_maincpu = machine.device<cpu_device>("maincpu");
670671
671672   if (cart_mounted)      // disksys expansion can arrive here without the memory banks!
trunk/src/emu/bus/nes/nes_slot.h
r32261r32262
232232   dynamic_buffer m_vram;
233233   dynamic_buffer m_battery;
234234   UINT8 *m_ciram;
235
236   // HACK: to reduce tagmap lookups for PPU-related IRQs, we add a hook to the
237   // main NES CPU here, even if it does not belong to this device.
235238   cpu_device *m_maincpu;
236239
237240   // these are specific of some boards but must be accessible from the driver

Previous 199869 Revisions Next


© 1997-2024 The MAME Team