trunk/src/mame/machine/segaic16.c
| r19427 | r19428 | |
| 414 | 414 | m_banks[m_curregion].set(bank, info.start, romend, rgnoffset, memptr); |
| 415 | 415 | } |
| 416 | 416 | |
| 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? |
| 418 | 422 | if (!whandler.isnull()) |
| 419 | 423 | 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); |
| 420 | 426 | } |
| 421 | 427 | |
| 422 | 428 | |