From f64643e75c983eb4d662218b63d79c3a4f08ed55 Mon Sep 17 00:00:00 2001 From: Fabian Stemmler Date: Tue, 17 Sep 2019 22:57:40 +0200 Subject: [PATCH] WordAddressableMemory will now ignore non-binary BitVectors --- .../machine/standard/memory/WordAddressableMemory.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/net.mograsim.machine/src/net/mograsim/machine/standard/memory/WordAddressableMemory.java b/plugins/net.mograsim.machine/src/net/mograsim/machine/standard/memory/WordAddressableMemory.java index 4a54ad9f..e8ce2452 100644 --- a/plugins/net.mograsim.machine/src/net/mograsim/machine/standard/memory/WordAddressableMemory.java +++ b/plugins/net.mograsim.machine/src/net/mograsim/machine/standard/memory/WordAddressableMemory.java @@ -20,6 +20,13 @@ public class WordAddressableMemory extends GenericMemory implements M this.definition = definition; } + @Override + public void setCell(long address, BitVector data) + { + if (data.isBinary()) + super.setCell(address, data); + } + @Override public BitVector getCell(long address) { -- 2.17.1