From 96b2542ea6f28461cda4fc5acbae276c2da85549 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Sat, 9 Dec 2017 14:47:49 -0600 Subject: [PATCH] CARRY should be set if oper > 0 This error became apparent once we added the missing modify_status function to some instructions. --- tests/mos6502.bits.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mos6502.bits.c b/tests/mos6502.bits.c index 5f08c56..4ae9295 100644 --- a/tests/mos6502.bits.c +++ b/tests/mos6502.bits.c @@ -76,7 +76,7 @@ Test(mos6502_bits, lsr) cpu->last_addr = 123; mos6502_handle_lsr(cpu, 22); cr_assert_eq(vm_segment_get(cpu->memory, 123), 11); - cr_assert_eq(cpu->P & CARRY, 0); + cr_assert_eq(cpu->P & CARRY, CARRY); } Test(mos6502_bits, ora)