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());