mirror of
https://github.com/pevans/erc-c.git
synced 2024-12-21 23:29:16 +00:00
Set negative and unset zero since the operand >= A
This commit is contained in:
parent
3c7002c6c7
commit
746e2246b3
@ -28,8 +28,8 @@ Test(mos6502_arith, cmp)
|
||||
cpu->A = 3;
|
||||
mos6502_handle_cmp(cpu, 4);
|
||||
cr_assert_eq(cpu->P & MOS_CARRY, 0);
|
||||
cr_assert_eq(cpu->P & MOS_NEGATIVE, 0);
|
||||
cr_assert_eq(cpu->P & MOS_ZERO, MOS_ZERO);
|
||||
cr_assert_eq(cpu->P & MOS_NEGATIVE, MOS_NEGATIVE);
|
||||
cr_assert_eq(cpu->P & MOS_ZERO, 0);
|
||||
|
||||
cpu->A = 192;
|
||||
mos6502_handle_cmp(cpu, 3);
|
||||
|
Loading…
Reference in New Issue
Block a user