summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/lc8670/lc8670.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/lc8670/lc8670.cpp')
-rw-r--r--src/devices/cpu/lc8670/lc8670.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/devices/cpu/lc8670/lc8670.cpp b/src/devices/cpu/lc8670/lc8670.cpp
index eee3aea5e94..a6c852733b3 100644
--- a/src/devices/cpu/lc8670/lc8670.cpp
+++ b/src/devices/cpu/lc8670/lc8670.cpp
@@ -420,18 +420,20 @@ void lc8670_cpu_device::execute_run()
{
check_irqs();
- m_ppc = m_pc;
- debugger_instruction_hook(m_pc);
-
int cycles;
if (REG_PCON & HALT_MODE)
{
+ debugger_wait_hook();
+
// in HALT state the timers are still updated
cycles = 1;
}
else
{
+ m_ppc = m_pc;
+ debugger_instruction_hook(m_pc);
+
// instruction fetch
m_op = fetch();
int op_idx = decode_op(m_op);