summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/osborne1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/osborne1.cpp')
-rw-r--r--src/mame/machine/osborne1.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mame/machine/osborne1.cpp b/src/mame/machine/osborne1.cpp
index 039758b7868..cd649cef91a 100644
--- a/src/mame/machine/osborne1.cpp
+++ b/src/mame/machine/osborne1.cpp
@@ -102,7 +102,7 @@ WRITE8_MEMBER( osborne1_state::videoram_w )
READ8_MEMBER( osborne1_state::opcode_r )
{
- if (!machine().debugger_access())
+ if (!space.debugger_access())
{
// Update the flipflops that control bank selection and NMI
uint8_t const new_ub6a_q = (m_btn_reset->read() & 0x80) ? 1 : 0;
@@ -116,7 +116,12 @@ READ8_MEMBER( osborne1_state::opcode_r )
}
// Now that's sorted out we can call the normal read handler
- return m_maincpu->space(AS_PROGRAM).read_byte(offset);
+ address_space &program_space(m_maincpu->space(AS_PROGRAM));
+ bool const prev_debugger_access(program_space.debugger_access());
+ program_space.set_debugger_access(space.debugger_access());
+ uint8_t const data(program_space.read_byte(offset));
+ program_space.set_debugger_access(prev_debugger_access);
+ return data;
}
WRITE8_MEMBER( osborne1_state::bankswitch_w )