summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2018-02-21 16:02:06 +0000
committer smf- <smf-@users.noreply.github.com>2018-02-21 16:02:37 +0000
commit494e9b4c818b1a14bb98daee766ae6af5e5ed95c (patch)
treeb28acc35805b62c17ead8cb65a52dc4a6ebad9fb
parent51a7b81ad30822d3fc2f881c43269514a2ef6d78 (diff)
Debugger: fix f10 step over of instructions with a branch delay slot [smf]
-rw-r--r--src/emu/debug/debugcpu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp
index add085f1f6c..d5d8ec69200 100644
--- a/src/emu/debug/debugcpu.cpp
+++ b/src/emu/debug/debugcpu.cpp
@@ -2582,7 +2582,7 @@ void device_debug::prepare_for_step_overout(offs_t pc)
// if we need to skip additional instructions, advance as requested
while (extraskip-- > 0) {
u32 result = buffer.disassemble_info(pc);
- pc += buffer.next_pc_wrap(pc, result & util::disasm_interface::LENGTHMASK);
+ pc = buffer.next_pc_wrap(pc, result & util::disasm_interface::LENGTHMASK);
}
m_stepaddr = pc;
}