From da7df5db42c02e9c06dea99a8c7e2e794c5774ef Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Wed, 16 Mar 2022 13:37:44 +0100 Subject: [PATCH] PSW & SP --- cpu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpu.cpp b/cpu.cpp index 08bb7f0..007ecbd 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -1477,7 +1477,9 @@ void cpu::disassemble() text = "RTS"; } - fprintf(stderr, "PC: %06o, instruction: %06o: %s\n", pc, instruction, text.c_str()); + fprintf(stderr, "PC: %06o, SP: %06o, PSW: %d%d|%d|%d|%d%d%d%d%d, instr: %06o: %s\n", pc, sp[psw >> 14], + psw >> 14, (psw >> 12) & 3, (psw >> 11) & 1, (psw >> 5) & 7, !!(psw & 16), !!(psw & 8), !!(psw & 4), !!(psw & 2), psw & 1, + instruction, text.c_str()); } bool cpu::step()