diff --git a/InstructionSets/M68k/Implementation/PerformImplementation.hpp b/InstructionSets/M68k/Implementation/PerformImplementation.hpp index 6c491d017..2f8934d88 100644 --- a/InstructionSets/M68k/Implementation/PerformImplementation.hpp +++ b/InstructionSets/M68k/Implementation/PerformImplementation.hpp @@ -45,7 +45,7 @@ template < result += (destination & 0xf0) + (source & 0xf0) + - (((9 - result) >> 4) & 0x06); // i.e. ((result > 0x09) ? 0x06 : 0x00); + (((9 - result) >> 4) & 0x06); // i.e. ((result > 0x09) ? 0x06 : 0x00) result += ((0x9f - result) >> 4) & 0x60; // i.e. ((result > 0x9f) ? 0x60 : 0x00) // Set all flags essentially as if this were normal addition.