Fixed Carry handling in SBC opcode.
This commit is contained in:
parent
3cc3b39c89
commit
129fcff7e5
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue