ASLB zero-flag fix
This commit is contained in:
parent
96d4946194
commit
5185df56eb
1 changed files with 2 additions and 2 deletions
4
cpu.cpp
4
cpu.cpp
|
@ -1230,7 +1230,7 @@ bool cpu::single_operand_instructions(const uint16_t instr)
|
|||
v |= vl & 0xff00;
|
||||
|
||||
setPSW_n(SIGN(v, word_mode));
|
||||
setPSW_z(IS_0(v, wm_word));
|
||||
setPSW_z(IS_0(v, word_mode));
|
||||
setPSW_c(SIGN(vl, word_mode));
|
||||
setPSW_v(getPSW_n() ^ getPSW_c());
|
||||
|
||||
|
@ -1245,7 +1245,7 @@ bool cpu::single_operand_instructions(const uint16_t instr)
|
|||
|
||||
if (set_flags) {
|
||||
setPSW_n(SIGN(v, word_mode));
|
||||
setPSW_z(IS_0(v, wm_word));
|
||||
setPSW_z(IS_0(v, word_mode));
|
||||
setPSW_c(SIGN(vl, word_mode));
|
||||
setPSW_v(getPSW_n() ^ getPSW_c());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue