ASR: Z-flag is for full word
This commit is contained in:
parent
64dd360cc9
commit
d15c43faad
1 changed files with 2 additions and 2 deletions
4
cpu.cpp
4
cpu.cpp
|
@ -1198,7 +1198,7 @@ bool cpu::single_operand_instructions(const uint16_t instr)
|
|||
setRegister(dst_reg, v);
|
||||
|
||||
setPSW_n(SIGN(v, word_mode));
|
||||
setPSW_z(IS_0(v, word_mode));
|
||||
setPSW_z(IS_0(v, wm_word));
|
||||
setPSW_v(getPSW_n() ^ getPSW_c());
|
||||
}
|
||||
else {
|
||||
|
@ -1221,7 +1221,7 @@ bool cpu::single_operand_instructions(const uint16_t instr)
|
|||
|
||||
if (set_flags) {
|
||||
setPSW_n(SIGN(v, word_mode));
|
||||
setPSW_z(IS_0(v, word_mode));
|
||||
setPSW_z(IS_0(v, wm_word));
|
||||
setPSW_v(getPSW_n() ^ getPSW_c());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue