Fix SBC definition as per #3190.

This commit is contained in:
Alessandro Gatti 2021-07-07 10:54:59 +02:00
parent 2802425d68
commit 49ebf156d1

View File

@ -163,7 +163,7 @@ ADDRIX: (imm16,X) is X; imm16 { addr:2 = imm16 + zext(X); tmp:2 = *:2 addr;
:SBC ZIOP is (cc=2 & aaa=7) ... & ZIOP
{
local op1 = ZIOP;
local result = A - op1 - C;
local result = A - op1 - (1 - C);
subtraction_flags1(A, op1, result);
A = result;