From eff5a799e56c80eedad2f099e0c41bf8ee86d9e5 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sat, 18 Mar 2023 20:11:47 +0100 Subject: [PATCH] unfixed the broken fix from 076575c405c2c2bc896a3c7208896d19c694311c --- bus.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bus.cpp b/bus.cpp index b0465ae..b8cc57a 100644 --- a/bus.cpp +++ b/bus.cpp @@ -259,13 +259,13 @@ uint16_t bus::read(const uint16_t a, const bool word_mode, const bool use_prev, constexpr uint32_t system_size = n_pages * 8192 / 64 - 1; if (a == ADDR_SYSSIZE + 2) { // system size HI - printf("accessing system size HI\r\n"); - return ((system_size >> 6) - 1) >> 16; + // printf("accessing system size HI\r\n"); + return system_size >> 16; } if (a == ADDR_SYSSIZE) { // system size LO - printf("accessing system size LO\r\n"); - return (system_size >> 6) - 1; + // printf("accessing system size LO\r\n"); + return system_size; } if (a & 1)