From cfaf1e4385f4cd5a4e47a34b5e47e8eb94eb979f Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Fri, 8 Apr 2022 23:39:25 +0200 Subject: [PATCH] debug --- bus.cpp | 4 ++-- cpu.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bus.cpp b/bus.cpp index 1fa56b3..2753687 100644 --- a/bus.cpp +++ b/bus.cpp @@ -64,7 +64,7 @@ uint16_t bus::read(const uint16_t a, const bool word_mode, const bool use_prev) if (a >= 0160000) { if (word_mode) - fprintf(stderr, "READ I/O %06o in byte mode\n", a); + D(fprintf(stderr, "READ I/O %06o in byte mode\n", a);) if (a == 0177750) { // MAINT D(fprintf(stderr, "read MAINT\n");) @@ -363,7 +363,7 @@ uint16_t bus::write(const uint16_t a, const bool word_mode, uint16_t value, cons if (a >= 0160000) { if (word_mode) - fprintf(stderr, "WRITE I/O %06o in byte mode\n", a); + D(fprintf(stderr, "WRITE I/O %06o in byte mode\n", a);) if (word_mode) { if (a == 0177776 || a == 0177777) { // PSW diff --git a/cpu.cpp b/cpu.cpp index cdc8a26..9af9067 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -1304,7 +1304,6 @@ bool cpu::misc_operations(const uint16_t instr) { switch(instr) { case 0b0000000000000000: // HALT - // pretend HALT is not executed, proceed *event = 1; return true;