From 42923f5f18a42a4086f43fc2a8e9170a149a1198 Mon Sep 17 00:00:00 2001 From: Neil Webber Date: Mon, 23 Oct 2023 10:11:18 -0500 Subject: [PATCH] register_simpleattr wasn't returning value --- mmio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmio.py b/mmio.py index 29f585b..87b5d29 100644 --- a/mmio.py +++ b/mmio.py @@ -257,7 +257,7 @@ class MMIO: return value # NOTE: Registers a different ("closure of") rwattr each time. - self.register(_rwattr, addr, 1, reset=reset) + return self.register(_rwattr, addr, 1, reset=reset) # In the real hardware, the PDP-11 RESET instruction pulls a reset line # that all devices can see. In the emulation, devices that need to know