unfixed the broken fix from 076575c405

This commit is contained in:
folkert van heusden 2023-03-18 20:11:47 +01:00
parent c5b603d50c
commit eff5a799e5
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -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; constexpr uint32_t system_size = n_pages * 8192 / 64 - 1;
if (a == ADDR_SYSSIZE + 2) { // system size HI if (a == ADDR_SYSSIZE + 2) { // system size HI
printf("accessing system size HI\r\n"); // printf("accessing system size HI\r\n");
return ((system_size >> 6) - 1) >> 16; return system_size >> 16;
} }
if (a == ADDR_SYSSIZE) { // system size LO if (a == ADDR_SYSSIZE) { // system size LO
printf("accessing system size LO\r\n"); // printf("accessing system size LO\r\n");
return (system_size >> 6) - 1; return system_size;
} }
if (a & 1) if (a & 1)