From 60ff0e57810b9657132d01a2337a79bb6634d4ad Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Tue, 23 Jan 2018 16:24:16 -0600 Subject: [PATCH] Carry is set by default now --- tests/mos6502.addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mos6502.addr.c b/tests/mos6502.addr.c index 855f6ac..1d3ce7f 100644 --- a/tests/mos6502.addr.c +++ b/tests/mos6502.addr.c @@ -33,6 +33,7 @@ Test(mos6502_addr, addr_mode_abx_carry0) SET_PC_BYTE(cpu, 1, 0x30); SET_PC_BYTE(cpu, 2, 0x12); cpu->X = 4; + cpu->P = cpu->P & ~MOS_CARRY; cr_assert_eq(mos6502_resolve_abx(cpu), 111); } @@ -42,7 +43,6 @@ Test(mos6502_addr, addr_mode_abx_carry1) SET_PC_BYTE(cpu, 1, 0x30); SET_PC_BYTE(cpu, 2, 0x12); cpu->X = 3; - cpu->P = cpu->P | MOS_CARRY; cr_assert_eq(mos6502_resolve_abx(cpu), 111); }