Previous 199869 Revisions Next

r19428 Sunday 9th December, 2012 at 17:37:46 UTC by Phil Bennett
03718: shdancer: Freeze on stage 2-4 [Phil Bennett]
[src/mame/machine]segaic16.c

trunk/src/mame/machine/segaic16.c
r19427r19428
414414      m_banks[m_curregion].set(bank, info.start, romend, rgnoffset, memptr);
415415   }
416416
417   // install a write handler if provided
417   // either install a write handler if provided or unmap the region
418   //
419   // shdancer relies on this behaviour to prevent a write to ROM from
420   // falling through to the memory-mapping registers and crashing the
421   // game during stage 2-4 (see PC:$18a98). Protection maybe?
418422   if (!whandler.isnull())
419423      m_space->install_write_handler(info.start, info.end, 0, info.mirror, whandler);
424   else
425      m_space->unmap_write(info.start, info.end, 0, info.mirror);
420426}
421427
422428

Previous 199869 Revisions Next


© 1997-2024 The MAME Team