summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sm510/sm510base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/sm510/sm510base.cpp')
-rw-r--r--src/devices/cpu/sm510/sm510base.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/sm510/sm510base.cpp b/src/devices/cpu/sm510/sm510base.cpp
index 58b16abd11f..a54eb433862 100644
--- a/src/devices/cpu/sm510/sm510base.cpp
+++ b/src/devices/cpu/sm510/sm510base.cpp
@@ -130,7 +130,7 @@ void sm510_base_device::device_start()
state_add(STATE_GENPCBASE, "CURPC", m_pc).formatstr("%04X").noshow();
state_add(STATE_GENFLAGS, "GENFLAGS", m_c).formatstr("%1s").noshow();
- m_icountptr = &m_icount;
+ set_icountptr(m_icount);
// init peripherals
init_divider();
@@ -300,7 +300,7 @@ void sm510_base_device::execute_run()
m_prev_pc = m_pc;
// fetch next opcode
- debugger_instruction_hook(this, m_pc);
+ debugger_instruction_hook(m_pc);
m_op = m_program->read_byte(m_pc);
increment_pc();
get_opcode_param();