From fbf9a79f3fc531d4ac32bf48fd409868561c9049 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sun, 13 Mar 2022 12:51:34 +0100 Subject: [PATCH] MTPS / MFPS --- cpu.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cpu.cpp b/cpu.cpp index 22728a5..9bc0824 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -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; }