summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/nec/nec.cpp
diff options
context:
space:
mode:
author AJR <ariedlmayer@gmail.com>2024-11-17 08:11:09 -0500
committer AJR <ariedlmayer@gmail.com>2024-11-17 08:11:39 -0500
commitb1181f86023746b912dfc93ed65122a4cac89f49 (patch)
treeb145145294dd1eb328e2da0ffa85581ac5e93bd0 /src/devices/cpu/nec/nec.cpp
parent3c6e66e50f3645f619a16c0dc13836273046fc14 (diff)
diexec: Add callback to allow debugger to break into the middle of wait-type instructions whose execution time is normally indefinite. When this happens, a special message may be printed to the debug console stating the location of the last actual instruction executed before the wait (if there was one).
Note that since the callback ignores the current value of the program counter, this special type of debugger break cannot be entered through breakpoints or instruction stepping commands. The callback also leaves no effect on PC history tracking or trace logs. * cpu/hd61700, cpu/tms32031: Add standard IRQ callback * cpu/m68000gen.py: Change name of invoked executable to bin/python3 * cpu/m6809: Eliminate PC "massaging" for SYNC and similar instructions
Diffstat (limited to 'src/devices/cpu/nec/nec.cpp')
-rw-r--r--src/devices/cpu/nec/nec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/nec/nec.cpp b/src/devices/cpu/nec/nec.cpp
index afa45f7dc17..1f9e28799f8 100644
--- a/src/devices/cpu/nec/nec.cpp
+++ b/src/devices/cpu/nec/nec.cpp
@@ -631,8 +631,8 @@ void nec_common_device::execute_run()
if (m_halted)
{
+ debugger_wait_hook();
m_icount = 0;
- debugger_instruction_hook((Sreg(PS)<<4) + m_ip);
return;
}