From c9ed7cfd7bbdbf6dfabd84d755cf8637ff8bfc17 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Thu, 17 Mar 2022 17:36:19 +0100 Subject: [PATCH] for now, no bus error if nothing is listening to a write/read memory address --- bus.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bus.cpp b/bus.cpp index b75cd97..a0d21e2 100644 --- a/bus.cpp +++ b/bus.cpp @@ -50,6 +50,7 @@ void bus::clearmem() uint16_t bus::read(const uint16_t a, const bool word_mode, const bool use_prev) { + // fprintf(stderr, "read [%d] from %06o [%d]\n", word_mode, a, use_prev); uint16_t temp = 0; if (a >= 0160000) { @@ -264,6 +265,7 @@ uint16_t bus::read(const uint16_t a, const bool word_mode, const bool use_prev) uint16_t bus::write(const uint16_t a, const bool word_mode, uint16_t value, const bool use_prev) { + // fprintf(stderr, "write [%d] %06o to %06o\n", word_mode, value, a); //D(fprintf(stderr, "write bus %o(%d): %o\n", a, word_mode, value);) if (a >= 0160000) { @@ -440,7 +442,7 @@ uint16_t bus::write(const uint16_t a, const bool word_mode, uint16_t value, cons D(fprintf(stderr, "bus::writeWord: odd address UNHANDLED\n");) D(fprintf(stderr, "UNHANDLED write %o(%c): %o\n", a, word_mode ? 'B' : ' ', value);) - c -> busError(); +// c -> busError(); return value; }