fix(?) for SWAB flags

This commit is contained in:
folkert van heusden 2022-03-16 20:17:58 +01:00
parent fb7f15f208
commit 5002040e30

View file

@ -606,8 +606,8 @@ bool cpu::single_operand_instructions(const uint16_t instr)
b -> writeByte(a + 1, t1);
}
setPSW_n(t2 & 0x80);
setPSW_z(t2 == 0);
setPSW_n(t1 & 0x80);
setPSW_z(t1 == 0);
setPSW_v(false);
setPSW_c(false);
break;