summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sm510/sm510op.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/sm510/sm510op.cpp')
-rw-r--r--src/devices/cpu/sm510/sm510op.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/sm510/sm510op.cpp b/src/devices/cpu/sm510/sm510op.cpp
index 7a232b667cc..f0a32851708 100644
--- a/src/devices/cpu/sm510/sm510op.cpp
+++ b/src/devices/cpu/sm510/sm510op.cpp
@@ -116,7 +116,7 @@ void sm510_base_device::op_decb()
void sm510_base_device::op_atpl()
{
// ATPL: load Pl(PC low bits) with ACC
- m_pc = (m_pc & ~0xf) | m_acc;
+ m_pc = (m_prev_pc & ~0xf) | m_acc;
}
void sm510_base_device::op_rtn0()