From cad7658511685e69fa244986aa7385473c665bd3 Mon Sep 17 00:00:00 2001 From: Neil Webber Date: Tue, 19 Sep 2023 17:29:45 -0500 Subject: [PATCH] fix backwards A/W bits --- mmu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmu.py b/mmu.py index 765da13..283c9aa 100644 --- a/mmu.py +++ b/mmu.py @@ -334,8 +334,8 @@ class MemoryMgmt: # there are no further A/W bit updates to worry about (so they # can be cached at that point). - W_update = 0o200 if cycle == _CYCLE.WRITE else 0o000 - A_update = 0o100 if straps else 0o000 + W_update = 0o100 if cycle == _CYCLE.WRITE else 0o000 + A_update = 0o200 if straps else 0o000 AW_update = (W_update | A_update)