diff options
Diffstat (limited to 'src/devices/cpu/lr35902/lr35902.cpp')
-rw-r--r-- | src/devices/cpu/lr35902/lr35902.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/cpu/lr35902/lr35902.cpp b/src/devices/cpu/lr35902/lr35902.cpp index c575eea4157..cf936e47105 100644 --- a/src/devices/cpu/lr35902/lr35902.cpp +++ b/src/devices/cpu/lr35902/lr35902.cpp @@ -357,12 +357,13 @@ void lr35902_cpu_device::execute_run() /* Fetch and count cycles */ bool was_halted = (m_enable & HALTED); check_interrupts(); - debugger_instruction_hook(m_PC); if ( m_enable & HALTED ) { + debugger_wait_hook(); cycles_passed(m_has_halt_bug ? 2 : 4); m_execution_state = 1; m_entering_halt = false; } else { + debugger_instruction_hook(m_PC); if (was_halted) { m_PC++; } else { |