diff options
Diffstat (limited to 'src/mame/drivers/x68k.cpp')
-rw-r--r-- | src/mame/drivers/x68k.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/x68k.cpp b/src/mame/drivers/x68k.cpp index 2183dc4cb48..d382ee418f5 100644 --- a/src/mame/drivers/x68k.cpp +++ b/src/mame/drivers/x68k.cpp @@ -978,7 +978,7 @@ READ16_MEMBER(x68k_state::x68k_rom0_r) { /* this location contains the address of some expansion device ROM, if no ROM exists, then access causes a bus error */ - if((m_options->read() & 0x02) && !space.debugger_access()) + if((m_options->read() & 0x02) && !machine().side_effect_disabled()) set_bus_error((offset << 1) + 0xbffffc, 0, mem_mask); return 0xff; } @@ -987,7 +987,7 @@ WRITE16_MEMBER(x68k_state::x68k_rom0_w) { /* this location contains the address of some expansion device ROM, if no ROM exists, then access causes a bus error */ - if((m_options->read() & 0x02) && !space.debugger_access()) + if((m_options->read() & 0x02) && !machine().side_effect_disabled()) set_bus_error((offset << 1) + 0xbffffc, 1, mem_mask); } @@ -995,7 +995,7 @@ READ16_MEMBER(x68k_state::x68k_emptyram_r) { /* this location is unused RAM, access here causes a bus error Often a method for detecting amount of installed RAM, is to read or write at 1MB intervals, until a bus error occurs */ - if((m_options->read() & 0x02) && !space.debugger_access()) + if((m_options->read() & 0x02) && !machine().side_effect_disabled()) set_bus_error((offset << 1), 0, mem_mask); return 0xff; } @@ -1004,14 +1004,14 @@ WRITE16_MEMBER(x68k_state::x68k_emptyram_w) { /* this location is unused RAM, access here causes a bus error Often a method for detecting amount of installed RAM, is to read or write at 1MB intervals, until a bus error occurs */ - if((m_options->read() & 0x02) && !space.debugger_access()) + if((m_options->read() & 0x02) && !machine().side_effect_disabled()) set_bus_error((offset << 1), 1, mem_mask); } READ16_MEMBER(x68k_state::x68k_exp_r) { /* These are expansion devices, if not present, they cause a bus error */ - if((m_options->read() & 0x02) && !space.debugger_access()) + if((m_options->read() & 0x02) && !machine().side_effect_disabled()) set_bus_error((offset << 1) + 0xeafa00, 0, mem_mask); return 0xff; } @@ -1019,7 +1019,7 @@ READ16_MEMBER(x68k_state::x68k_exp_r) WRITE16_MEMBER(x68k_state::x68k_exp_w) { /* These are expansion devices, if not present, they cause a bus error */ - if((m_options->read() & 0x02) && !space.debugger_access()) + if((m_options->read() & 0x02) && !machine().side_effect_disabled()) set_bus_error((offset << 1) + 0xeafa00, 1, mem_mask); } |