From 9bbfb95b02e58798cb54b8e4cee48f333b9d5270 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Fri, 26 Jan 2018 22:04:47 -0600 Subject: [PATCH] Carry is no longer factored --- tests/mos6502.addr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mos6502.addr.c b/tests/mos6502.addr.c index ebb1d8c..7dd7c6a 100644 --- a/tests/mos6502.addr.c +++ b/tests/mos6502.addr.c @@ -42,7 +42,7 @@ Test(mos6502_addr, addr_mode_abx_carry1) mos6502_set(cpu, 0x1234, 111); SET_PC_BYTE(cpu, 1, 0x30); SET_PC_BYTE(cpu, 2, 0x12); - cpu->X = 3; + cpu->X = 4; cr_assert_eq(mos6502_resolve_abx(cpu), 111); } @@ -61,7 +61,7 @@ Test(mos6502_addr, addr_mode_aby_carry1) mos6502_set(cpu, 0x1234, 111); SET_PC_BYTE(cpu, 1, 0x30); SET_PC_BYTE(cpu, 2, 0x12); - cpu->Y = 3; + cpu->Y = 4; cr_assert_eq(mos6502_resolve_aby(cpu), 111); }