From d590a809d8b076d1da7110c08006cf63a5aa09b2 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Mon, 19 Feb 2018 21:59:55 -0600 Subject: [PATCH] Tests should reflect how carry is handled in ROL/R now --- tests/mos6502.bits.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mos6502.bits.c b/tests/mos6502.bits.c index f4f2f1b..54f7b68 100644 --- a/tests/mos6502.bits.c +++ b/tests/mos6502.bits.c @@ -97,7 +97,7 @@ Test(mos6502_bits, rol) cpu->eff_addr = 234; mos6502_handle_rol(cpu, 128); - cr_assert_eq(mos6502_get(cpu, 234), 1); + cr_assert_eq(mos6502_get(cpu, 234), 0); } Test(mos6502_bits, ror) @@ -106,6 +106,6 @@ Test(mos6502_bits, ror) cr_assert_eq(cpu->A, 160); cpu->eff_addr = 123; - mos6502_handle_ror(cpu, 1); + mos6502_handle_ror(cpu, 0); cr_assert_eq(mos6502_get(cpu, 123), 128); }