Whoops: CWAI has to flag that the entire range of registers has been saved. (6809)

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2018-08-22 01:03:54 +01:00
parent 86c9ade43f
commit 1556e82313

View File

@ -582,6 +582,7 @@ uint8_t EightBit::mc6809::com(uint8_t operand) {
void EightBit::mc6809::cwai(uint8_t data) { void EightBit::mc6809::cwai(uint8_t data) {
CC() &= data; CC() &= data;
CC() |= EF;
pushWordS(PC()); pushWordS(PC());
pushWordS(U()); pushWordS(U());
pushWordS(Y()); pushWordS(Y());