diff --git a/InstructionSets/M68k/Implementation/ExecutorImplementation.hpp b/InstructionSets/M68k/Implementation/ExecutorImplementation.hpp index a74338b32..849d011b4 100644 --- a/InstructionSets/M68k/Implementation/ExecutorImplementation.hpp +++ b/InstructionSets/M68k/Implementation/ExecutorImplementation.hpp @@ -98,11 +98,11 @@ typename Executor::EffectiveAddress Executor::EffectiveAddress Executor()); + ea.value.l = address_[instruction.reg(index)].l + int16_t(read_pc()); ea.requires_fetch = true; break; case AddressingMode::AddressRegisterIndirectWithIndex8bitDisplacement: - ea.value.l = address_[instruction.reg(index)] + index_8bitdisplacement(); + ea.value.l = address_[instruction.reg(index)].l + index_8bitdisplacement(); ea.requires_fetch = true; break;