Fixed MT06352 (nw)

This commit is contained in:
Ivan Vangelista 2016-08-22 08:49:35 +02:00 committed by GitHub
parent bedd34a95d
commit 777c68ac87

View File

@ -377,10 +377,11 @@ TIMER_DEVICE_CALLBACK_MEMBER(cps_state::ganbare_interrupt)
READ16_MEMBER(cps_state::qsound_rom_r) READ16_MEMBER(cps_state::qsound_rom_r)
{ {
UINT8 *rom = memregion("user1")->base(); if (memregion("user1") != nullptr)
{
if (rom) UINT8 *rom = memregion("user1")->base();
return rom[offset] | 0xff00; return rom[offset] | 0xff00;
}
else else
{ {
popmessage("%06x: read sound ROM byte %04x", space.device().safe_pc(), offset); popmessage("%06x: read sound ROM byte %04x", space.device().safe_pc(), offset);