mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Fixed Carry handling in SBC opcode.
This commit is contained in:
parent
3cc3b39c89
commit
129fcff7e5
@ -312,7 +312,7 @@ static unsigned HaveIRQRequest;
|
||||
SET_CF (res <= 0xFF); \
|
||||
SET_OF (((old^rhs) & (old^res) & 0x80)); \
|
||||
} else { \
|
||||
Regs.AC -= rhs - (!GET_CF ()); \
|
||||
Regs.AC -= rhs + (!GET_CF ()); \
|
||||
TEST_ZF (Regs.AC); \
|
||||
TEST_SF (Regs.AC); \
|
||||
SET_CF (Regs.AC <= 0xFF); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user