MTPS / MFPS

This commit is contained in:
folkert van heusden 2022-03-13 12:51:34 +01:00
parent 445d652921
commit fbf9a79f3f

10
cpu.cpp
View file

@ -914,6 +914,16 @@ bool cpu::single_operand_instructions(const uint16_t instr)
b -> write(a, word_mode, v); // ?
break;
case 0b000110100: // MTPS (put something in PSW)
D(fprintf(stderr, "MTPS\n");)
psw = getGAM(dst_mode, dst_reg, word_mode, false, src_gam_text);
break;
case 0b000110111: // MFPS (get PSW to something)
D(fprintf(stderr, "MFPS\n");)
putGAM(dst_mode, dst_reg, word_mode, psw, false, dst_gam_text);
break;
default:
return false;
}