From 25ab47846162913a609a4ffa2987d35888ae11db Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 2 May 2022 20:17:44 -0400 Subject: [PATCH] Fix immediate byte and word fetches. --- .../M68k/Implementation/ExecutorImplementation.hpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/InstructionSets/M68k/Implementation/ExecutorImplementation.hpp b/InstructionSets/M68k/Implementation/ExecutorImplementation.hpp index a9ff141e0..969a70fe9 100644 --- a/InstructionSets/M68k/Implementation/ExecutorImplementation.hpp +++ b/InstructionSets/M68k/Implementation/ExecutorImplementation.hpp @@ -111,8 +111,17 @@ typename Executor::EffectiveAddress Executor() & 0xff; + break; + case DataSize::Word: + ea.value.l = read_pc(); + break; + case DataSize::LongWord: + ea.value.l = read_pc(); + break; + } ea.requires_fetch = false; break;