Fix Subs handling of carry PSTATE condition code, w/ T

This commit is contained in:
sBubshait 2024-06-05 23:58:56 +01:00
parent 40c5fac9f6
commit 7b1e6314a7

View File

@ -263,7 +263,7 @@ static void executeDPRegister(Machine *state, a64inst_instruction *inst) {
updateCondNZ(state, result, regType); updateCondNZ(state, result, regType);
state->conditionCodes.Overflow = src1Val < result; state->conditionCodes.Overflow = src1Val < result;
state->conditionCodes.Carry = state->conditionCodes.Overflow; state->conditionCodes.Carry = src1Val >= src2Val;
break; break;
case(a64inst_SUB): case(a64inst_SUB):