Reapplying the changes, as fixing was just looking
the changes and adding a cast, as it was in the past. Avoid reverts when the fix is as simple as this one and everyone will be happier :)
This commit is contained in:
parent
475d0151cc
commit
b47d95082d
File diff suppressed because it is too large
Load Diff
|
@ -334,8 +334,8 @@ TEMPLATE static u32 FASTCALL OP_ADC_REG()
|
|||
cpu->CPSR.bits.N = BIT31(res);
|
||||
cpu->CPSR.bits.Z = res == 0;
|
||||
|
||||
cpu->CPSR.bits.C = UNSIGNED_OVERFLOW(b, (u32) cpu->CPSR.bits.C, tmp) | UNSIGNED_OVERFLOW(tmp, a, res);
|
||||
cpu->CPSR.bits.V = SIGNED_OVERFLOW(b, (u32) cpu->CPSR.bits.C, tmp) | SIGNED_OVERFLOW(tmp, a, res);
|
||||
cpu->CPSR.bits.C = !UNSIGNED_UNDERFLOW(a, b, res);
|
||||
cpu->CPSR.bits.V = SIGNED_UNDERFLOW(a, b, res);
|
||||
|
||||
return 3;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue