From 1dfb1ab32530ce5e90d9b44db33bb3fd43340dee Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Mon, 13 Jun 2022 19:26:40 +0200 Subject: [PATCH] 11/34 needs special masking of bits in pdr --- bus.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bus.cpp b/bus.cpp index 61c9432..1ae9b07 100644 --- a/bus.cpp +++ b/bus.cpp @@ -551,7 +551,7 @@ uint16_t bus::write(const uint16_t a, const bool word_mode, uint16_t value, cons } if (c->get_34()) // 11/34 has no cache bit - pages[001][is_d][page].pdr &= 32767; + pages[001][is_d][page].pdr &= 077516; pages[001][is_d][page].pdr &= ~(128 + 64 + 32 + 16); // set bit 4 & 5 to 0 as they are unused and A/W are set to 0 by writes @@ -593,7 +593,7 @@ uint16_t bus::write(const uint16_t a, const bool word_mode, uint16_t value, cons } if (c->get_34()) // 11/34 has no cache bit - pages[000][is_d][page].pdr &= 32767; + pages[000][is_d][page].pdr &= 077516; pages[000][is_d][page].pdr &= ~(128 + 64 + 32 + 16); // set bit 4 & 5 to 0 as they are unused and A/W are set to 0 by writes @@ -635,7 +635,7 @@ uint16_t bus::write(const uint16_t a, const bool word_mode, uint16_t value, cons } if (c->get_34()) // 11/34 has no cache bit - pages[003][is_d][page].pdr &= 32767; + pages[003][is_d][page].pdr &= 077516; pages[003][is_d][page].pdr &= ~(128 + 64 + 32 + 16); // set bit 4 & 5 to 0 as they are unused and A/W are set to 0 by writes