From 1556e82313ad4d2dfb671cd1b3d2ce2ce5568bb5 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Wed, 22 Aug 2018 01:03:54 +0100 Subject: [PATCH] Whoops: CWAI has to flag that the entire range of registers has been saved. (6809) Signed-off-by: Adrian Conlon --- MC6809/src/mc6809.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/MC6809/src/mc6809.cpp b/MC6809/src/mc6809.cpp index 5185fe7..08f34f8 100644 --- a/MC6809/src/mc6809.cpp +++ b/MC6809/src/mc6809.cpp @@ -582,6 +582,7 @@ uint8_t EightBit::mc6809::com(uint8_t operand) { void EightBit::mc6809::cwai(uint8_t data) { CC() &= data; + CC() |= EF; pushWordS(PC()); pushWordS(U()); pushWordS(Y());