BISB: Z-flag only for LSB

This commit is contained in:
folkert van heusden 2024-03-29 15:56:36 +01:00
parent d15c43faad
commit 3139ee8a0d
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -557,7 +557,7 @@ bool cpu::double_operand_instructions(const uint16_t instr)
if (put_result(g_dst, result)) {
setPSW_n(SIGN(result, word_mode));
setPSW_z(result == 0);
setPSW_z(IS_0(result, word_mode));
setPSW_v(false);
}