diff --git a/Processors/65816/Implementation/65816Implementation.hpp b/Processors/65816/Implementation/65816Implementation.hpp index 23359bb25..34ed2189f 100644 --- a/Processors/65816/Implementation/65816Implementation.hpp +++ b/Processors/65816/Implementation/65816Implementation.hpp @@ -150,8 +150,8 @@ template void Processor void Processor void Processor mask) result -= adjustment;\ - borrow = (result > mask) ? carry : 0; \ + if(result > mask) result -= adjustment; \ + borrow = (result > mask) ? carry : 0; \ result &= (carry - 1); nibble(0x000f, 0x0006, 0x00010);