summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/hd61700/hd61700.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/hd61700/hd61700.cpp')
-rw-r--r--src/devices/cpu/hd61700/hd61700.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/devices/cpu/hd61700/hd61700.cpp b/src/devices/cpu/hd61700/hd61700.cpp
index ce96d03c699..e48b83a576f 100644
--- a/src/devices/cpu/hd61700/hd61700.cpp
+++ b/src/devices/cpu/hd61700/hd61700.cpp
@@ -201,8 +201,6 @@ void hd61700_cpu_device::device_start()
void hd61700_cpu_device::device_reset()
{
- m_ppc = 0x0000;
- m_curpc = 0x0000;
set_pc(0x0000);
m_flags = FLAG_SW;
m_state = 0;
@@ -335,6 +333,8 @@ void hd61700_cpu_device::execute_run()
{
do
{
+ m_ppc = m_curpc;
+
debugger_instruction_hook(this, m_curpc);
// verify that CPU is not in sleep
@@ -348,8 +348,6 @@ void hd61700_cpu_device::execute_run()
check_irqs();
- m_ppc = m_curpc;
-
// instruction fetch
op = read_op();
@@ -2739,6 +2737,7 @@ inline void hd61700_cpu_device::set_pc(INT32 new_pc)
{
m_curpc = (m_curpc & 0x30000) | new_pc;
m_pc = new_pc & 0xffff;
+ m_ppc = m_curpc;
m_fetch_addr = new_pc<<1;
}