1
0
mirror of https://github.com/pevans/erc-c.git synced 2025-04-07 04:37:25 +00:00

Carry is set only if the result is > 0xFF

This commit is contained in:
Peter Evans 2018-01-23 16:20:33 -06:00
parent 8133781fd3
commit 8edf83f7ad

View File

@ -47,7 +47,7 @@ Test(mos6502, modify_status)
mos6502_modify_status(cpu, MOS_OVERFLOW, 44, 44);
cr_assert_neq(cpu->P & MOS_OVERFLOW, MOS_OVERFLOW);
mos6502_modify_status(cpu, MOS_CARRY, 230, 230);
mos6502_modify_status(cpu, MOS_CARRY, 230, 260);
cr_assert_eq(cpu->P & MOS_CARRY, MOS_CARRY);
mos6502_modify_status(cpu, MOS_CARRY, 30, 190);
cr_assert_neq(cpu->P & MOS_CARRY, MOS_CARRY);