fix for v-flag for ASH shifts of < 32
This commit is contained in:
parent
43134223ae
commit
1605d1a9a7
1 changed files with 1 additions and 1 deletions
2
cpu.cpp
2
cpu.cpp
|
@ -697,7 +697,7 @@ bool cpu::additional_double_operand_instructions(const uint16_t instr)
|
|||
else if (shift < 32) {
|
||||
setPSW_c((R << (shift - 16)) & 1);
|
||||
R = 0;
|
||||
setPSW_v(!!oldR);
|
||||
setPSW_v(SIGN(oldR, wm_word) != SIGN(R, wm_word));
|
||||
}
|
||||
else if (shift == 32) {
|
||||
R = -sign;
|
||||
|
|
Loading…
Add table
Reference in a new issue