GP-1109 Fix 6502 SBC carry handling (Closes #3190, Closes #3189)

This commit is contained in:
Philip Pemberton 2021-09-08 09:56:04 -04:00 committed by ghidra1
parent a3846c3b56
commit 84492a89d6

View file

@ -420,7 +420,7 @@ ADDRI: imm16 is imm16 { tmp:2 = imm16; export *:2 tmp; }
:SBC OP1 is (cc=1 & aaa=7) ... & OP1
{
local op1 = OP1;
local result = A - op1 - C;
local result = A - op1 - !C;
subtraction_flags1(A, op1, result);
A = result;