From b02679f6a091af3d1e2f48459a3922f311cbcdd9 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Tue, 23 Jan 2018 16:26:05 -0600 Subject: [PATCH] Carry must be unset --- tests/mos6502.addr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/mos6502.addr.c b/tests/mos6502.addr.c index dfab728..ebb1d8c 100644 --- a/tests/mos6502.addr.c +++ b/tests/mos6502.addr.c @@ -88,6 +88,7 @@ Test(mos6502_addr, addr_mode_idy) SET_PC_BYTE(cpu, 1, 0x12); cpu->Y = 5; + cpu->P &= ~MOS_CARRY; cr_assert_eq(mos6502_resolve_idy(cpu), 123); }