Github issue #5767 - 6x09.sinc: Fix COM instruction

The complement macro was erroneously always complementing A register
instead of the macro parameter op. This caused errors with the COMB
and COM OP1 instructions.

Closes #5767.
This commit is contained in:
Vesa-Pekka Palmu 2024-03-14 07:33:47 +02:00
parent 7360b14db0
commit 387c283e89

View File

@ -430,7 +430,7 @@ macro complement(op)
{
$(V) = 0;
$(C) = 1;
A = ~A;
op = ~op;
setNZFlags(op);
}