summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/mc68hc11/hc11ops.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/mc68hc11/hc11ops.hxx')
-rw-r--r--src/devices/cpu/mc68hc11/hc11ops.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/mc68hc11/hc11ops.hxx b/src/devices/cpu/mc68hc11/hc11ops.hxx
index 640bd54342f..da168c095d2 100644
--- a/src/devices/cpu/mc68hc11/hc11ops.hxx
+++ b/src/devices/cpu/mc68hc11/hc11ops.hxx
@@ -474,7 +474,7 @@ void HC11OP(addd_indx)()
{
uint8_t offset = FETCH();
uint16_t adr = m_ix + offset;
- uint8_t i = READ8(adr);
+ uint16_t i = READ16(adr);
uint32_t r = REG_D + i;
CLEAR_NZVC();
SET_N16(r);
@@ -490,7 +490,7 @@ void HC11OP(addd_indy)()
{
uint8_t offset = FETCH();
uint16_t adr = m_iy + offset;
- uint8_t i = READ8(adr);
+ uint16_t i = READ16(adr);
uint32_t r = REG_D + i;
CLEAR_NZVC();
SET_N16(r);