ASRB (re?-)fix

This commit is contained in:
folkert van heusden 2024-03-29 15:13:53 +01:00
parent f927510a7b
commit 64dd360cc9
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -1190,7 +1190,7 @@ bool cpu::single_operand_instructions(const uint16_t instr)
setPSW_c(v & 1); setPSW_c(v & 1);
if (word_mode == wm_byte) if (word_mode == wm_byte)
v = (v & 255) >> 1; v = ((v & 255) >> 1) | (v & 0xff00);
else else
v >>= 1; v >>= 1;
v |= hb; v |= hb;
@ -1210,7 +1210,7 @@ bool cpu::single_operand_instructions(const uint16_t instr)
setPSW_c(v & 1); setPSW_c(v & 1);
if (word_mode == wm_byte) if (word_mode == wm_byte)
v = (v & 255) >> 1; v = ((v & 255) >> 1) | (v & 0xff00);
else else
v >>= 1; v >>= 1;
v |= hb; v |= hb;