From 140e87485c81a9e7d54e91cf6187e94dc56562ea Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sun, 14 Oct 2018 21:26:33 +0100 Subject: [PATCH] Whoops: Correct dodgy CMP test. That explains why I never understood why it was failing! Signed-off-by: Adrian Conlon --- MC6809/unittest/mc6809_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MC6809/unittest/mc6809_tests.cpp b/MC6809/unittest/mc6809_tests.cpp index 3a66071..b76d2c2 100644 --- a/MC6809/unittest/mc6809_tests.cpp +++ b/MC6809/unittest/mc6809_tests.cpp @@ -496,7 +496,7 @@ TEST_CASE("Compare Memory with a Register (8-bit)", "[CMP][CMPA][CMPB]") { REQUIRE(cpu.X() == 0x00); REQUIRE(cpu.Y() == 0x206); REQUIRE(cpu.U() == 0); - REQUIRE((cpu.CC() & EightBit::mc6809::CF) != 0); + REQUIRE((cpu.CC() & EightBit::mc6809::ZF) != 0); REQUIRE(cpu.cycles() == 6); }