summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2022-05-16 21:40:25 -0400
committer AJR <ajrhacker@users.noreply.github.com>2022-05-16 21:40:25 -0400
commitbe98431a8c526a34df5b767ad426c4ee6ea8b63e (patch)
tree1a774f194cce66d06e35d519de803b3d452bc15c
parentbac956e998a3437abf4938cb770f14b8982970dd (diff)
cpu16.cpp: Small fixups
-rw-r--r--src/devices/cpu/m68hc16/cpu16.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/devices/cpu/m68hc16/cpu16.cpp b/src/devices/cpu/m68hc16/cpu16.cpp
index 48c69082f47..91d2f33168c 100644
--- a/src/devices/cpu/m68hc16/cpu16.cpp
+++ b/src/devices/cpu/m68hc16/cpu16.cpp
@@ -4244,6 +4244,7 @@ void cpu16_device::execute_run()
case seq::MOVW_IXP_EXT_2B:
m_tmp = m_tmp << 8 | m_data.read_byte(m_ea);
+ m_ea = (m_ea - 1) & 0xfffff;
m_sequence = seq::MOVW_IXP_EXT_3;
advance();
m_icount -= 2;
@@ -5403,6 +5404,7 @@ void cpu16_device::execute_run()
m_start = false;
m_icount -= 2;
break;
+
case seq::SUBA_IND8:
m_fetch_pipe[0] = m_cache.read_word(m_pc);
m_ea = (m_index_regs[BIT(m_fetch_pipe[2], 12, 2)] + (m_fetch_pipe[2] & 0x00ff)) & 0xfffff;