From 1677c9be1b3dd94ac2194766c376dd3a48027b0b Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sun, 19 Mar 2023 21:49:48 +0100 Subject: [PATCH] 11/70 has no MTPS instruction --- cpu.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpu.cpp b/cpu.cpp index 8ee5c17..e887162 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -1291,8 +1291,12 @@ bool cpu::single_operand_instructions(const uint16_t instr) case 0b000110100: // MARK/MTPS (put something in PSW) if (word_mode) { // MTPS +#if 0 // not in the PDP-11/70 psw &= 0xff00; // only alter lower 8 bits psw |= getGAM(dst_mode, dst_reg, word_mode, false).value.value() & 0xef; // can't change bit 4 +#else + trap(010); +#endif } else { setRegister(6, getPC() + dst * 2); @@ -1301,7 +1305,6 @@ bool cpu::single_operand_instructions(const uint16_t instr) setRegister(5, popStack()); } - break; case 0b000110111: { // MFPS (get PSW to something) / SXT