From 283fc29c81dbb097ba86c85b2006e92aea7116d3 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Thu, 23 Mar 2023 19:28:14 +0100 Subject: [PATCH] system size registers should not trap and also be r/o --- bus.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bus.cpp b/bus.cpp index a3d0f95..542cc81 100644 --- a/bus.cpp +++ b/bus.cpp @@ -864,6 +864,9 @@ void bus::write(const uint16_t a, const bool word_mode, uint16_t value, const bo return; } + if (a == ADDR_SYSSIZE || a == ADDR_SYSSIZE + 2) // system size (is read-only) + return; + /////////// DOLOG(debug, true, "UNHANDLED write %o(%c): %o", a, word_mode ? 'B' : 'W', value);