From 9122b5aa76a3bb8619d95887f802c608ff9f70e0 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Mon, 20 Aug 2018 12:54:01 +0100 Subject: [PATCH] Whoops: missed carry adjustment for the 6809 Signed-off-by: Adrian Conlon --- MC6809/src/mc6809.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MC6809/src/mc6809.cpp b/MC6809/src/mc6809.cpp index 84e104e..397cd52 100644 --- a/MC6809/src/mc6809.cpp +++ b/MC6809/src/mc6809.cpp @@ -376,7 +376,7 @@ uint8_t EightBit::mc6809::neg(uint8_t operand) { const register16_t result = 0 - operand; operand = result.low; adjustNZ(operand); - setFlag(CC(), CF, result.word & Bit8); + adjustCarry(result.word); return operand; }