summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m68hc16/cpu16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/m68hc16/cpu16.cpp')
-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;