| 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 |
| r32261 | r32262 | |
|---|---|---|
| 665 | 665 | |
| 666 | 666 | void device_nes_cart_interface::pcb_start(running_machine &machine, UINT8 *ciram_ptr, bool cart_mounted) |
| 667 | 667 | { |
| 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. | |
| 669 | 670 | m_maincpu = machine.device<cpu_device>("maincpu"); |
| 670 | 671 | |
| 671 | 672 | if (cart_mounted) // disksys expansion can arrive here without the memory banks! |
| r32261 | r32262 | |
|---|---|---|
| 232 | 232 | dynamic_buffer m_vram; |
| 233 | 233 | dynamic_buffer m_battery; |
| 234 | 234 | 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. | |
| 235 | 238 | cpu_device *m_maincpu; |
| 236 | 239 | |
| 237 | 240 | // these are specific of some boards but must be accessible from the driver |
| Previous | 199869 Revisions | Next |