comments
This commit is contained in:
parent
4d87ef4bf4
commit
9a4bfcfe82
1 changed files with 3 additions and 1 deletions
4
cpu.cpp
4
cpu.cpp
|
@ -1086,14 +1086,16 @@ bool cpu::single_operand_instructions(const uint16_t instr)
|
||||||
}
|
}
|
||||||
|
|
||||||
case 0b00110101: { // MFPD/MFPI
|
case 0b00110101: { // MFPD/MFPI
|
||||||
// for MFPD versus MFPI
|
// calculate address in current address space
|
||||||
uint16_t a = getGAMAddress(dst_mode, dst_reg, false, false);
|
uint16_t a = getGAMAddress(dst_mode, dst_reg, false, false);
|
||||||
|
// reed from previous space
|
||||||
uint16_t v = b -> read(a, false, true);
|
uint16_t v = b -> read(a, false, true);
|
||||||
|
|
||||||
setPSW_n(SIGN(v, false));
|
setPSW_n(SIGN(v, false));
|
||||||
setPSW_z(v == 0);
|
setPSW_z(v == 0);
|
||||||
setPSW_v(false);
|
setPSW_v(false);
|
||||||
|
|
||||||
|
// put on current stack
|
||||||
pushStack(v);
|
pushStack(v);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue