From 746e2246b387cb769732f0d8292ed062268fdaac Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Tue, 23 Jan 2018 16:29:53 -0600 Subject: [PATCH] Set negative and unset zero since the operand >= A --- tests/mos6502.arith.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mos6502.arith.c b/tests/mos6502.arith.c index 867b4aa..4e654fc 100644 --- a/tests/mos6502.arith.c +++ b/tests/mos6502.arith.c @@ -28,8 +28,8 @@ Test(mos6502_arith, cmp) cpu->A = 3; mos6502_handle_cmp(cpu, 4); cr_assert_eq(cpu->P & MOS_CARRY, 0); - cr_assert_eq(cpu->P & MOS_NEGATIVE, 0); - cr_assert_eq(cpu->P & MOS_ZERO, MOS_ZERO); + cr_assert_eq(cpu->P & MOS_NEGATIVE, MOS_NEGATIVE); + cr_assert_eq(cpu->P & MOS_ZERO, 0); cpu->A = 192; mos6502_handle_cmp(cpu, 3);