ASRB (re?-)fix
This commit is contained in:
parent
f927510a7b
commit
64dd360cc9
1 changed files with 2 additions and 2 deletions
4
cpu.cpp
4
cpu.cpp
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue