From 7d5bec21976a1329b858647f54fef3d9ab9366b4 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sat, 25 Mar 2023 20:24:14 +0100 Subject: [PATCH] apparenty all bits of the MMR3 could be set? even the unused bits? --- bus.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bus.cpp b/bus.cpp index d842efd..aea4ef5 100644 --- a/bus.cpp +++ b/bus.cpp @@ -509,7 +509,7 @@ uint32_t bus::calculate_physical_address(const int run_mode, const uint16_t a, c uint16_t p_offset = a & 8191; // page offset // if (a == 0100000) - DOLOG(info, true, "0100000: APF=%d, d=%d, MMR3=%d, run_mode=%d, mask=%d, space=%d", apf, d, MMR3, run_mode, get_use_data_space(run_mode), space); + DOLOG(info, true, "0100000: APF=%d, d=%d, MMR3=%06o, run_mode=%d, mask=%d, space=%d", apf, d, MMR3, run_mode, get_use_data_space(run_mode), space); m_offset = pages[run_mode][d][apf].par * 64; // memory offset TODO: handle 16b int-s @@ -822,7 +822,7 @@ void bus::write(const uint16_t a, const word_mode_t word_mode, uint16_t value, c if (a == ADDR_MMR3) { // MMR3 DOLOG(debug, true, "WRITE-I/O set MMR3: %06o", value); - MMR3 = value & 067; + MMR3 = value; return; }