mirror of
https://github.com/pevans/erc-c.git
synced 2026-04-21 00:16:49 +00:00
Carry is set only if the result is > 0xFF
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user