From b9933f512f0e4fd32e648ce7393d0d9d4e903796 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 24 Apr 2019 16:30:15 -0400 Subject: [PATCH] Fixed: the word/long-word bit works the other way around. --- Processors/68000/Implementation/68000Implementation.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Processors/68000/Implementation/68000Implementation.hpp b/Processors/68000/Implementation/68000Implementation.hpp index e90a7fc4e..3de94d69c 100644 --- a/Processors/68000/Implementation/68000Implementation.hpp +++ b/Processors/68000/Implementation/68000Implementation.hpp @@ -1277,9 +1277,9 @@ template void Proces target.full = int8_t(data.halves.low) + source; \ \ if(data.full & 0x800) { \ - target.full += int16_t(displacement.halves.low.full); \ - } else { \ target.full += displacement.full; \ + } else { \ + target.full += int16_t(displacement.halves.low.full); \ } \ } case int(MicroOp::Action::CalcD8AnXn) | MicroOp::SourceMask: {