This commit is contained in:
folkert van heusden 2024-03-28 23:54:49 +01:00
parent 22d51ba515
commit b8d0a08bcf
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -1398,7 +1398,7 @@ bool cpu::single_operand_instructions(const uint16_t instr)
else { // SXT
auto g_dst = getGAM(dst_mode, dst_reg, word_mode, rm_cur);
int32_t vl = -getPSW_n();
uint16_t vl = -getPSW_n();
if (put_result(g_dst, vl)) {
setPSW_z(getPSW_n() == false);