MFPS flags
This commit is contained in:
parent
ba1bcdbe15
commit
468983b0b5
1 changed files with 3 additions and 2 deletions
5
cpu.cpp
5
cpu.cpp
|
@ -901,8 +901,9 @@ bool cpu::single_operand_instructions(const uint16_t instr)
|
||||||
if (word_mode) { // MFPS
|
if (word_mode) { // MFPS
|
||||||
uint16_t temp = psw & 0xff;
|
uint16_t temp = psw & 0xff;
|
||||||
|
|
||||||
if (dst_mode == 0 && SIGN(temp))
|
setPSW_n(temp & 128);
|
||||||
temp |= 0xff00;
|
setPSW_z(temp == 0);
|
||||||
|
setPSW_v(false);
|
||||||
|
|
||||||
putGAM(dst_mode, dst_reg, word_mode, temp, false);
|
putGAM(dst_mode, dst_reg, word_mode, temp, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue