Fixed two problems causing memory updates to get "missed" by observers
[Mograsim.git] / net.mograsim.machine / src / net / mograsim / machine / mi / components / CoreMicroInstructionMemory.java
index 60902af..12b44dd 100644 (file)
@@ -23,6 +23,7 @@ public class CoreMicroInstructionMemory extends BasicCoreComponent
                this.memory = memory;
                this.data = data;
                this.address = address;
+               memory.registerObserver(a -> update());
                address.registerObserver(this);
        }