From: Fabian Stemmler Date: Tue, 17 Sep 2019 20:57:40 +0000 (+0200) Subject: WordAddressableMemory will now ignore non-binary BitVectors X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;h=f64643e75c983eb4d662218b63d79c3a4f08ed55;p=Mograsim.git WordAddressableMemory will now ignore non-binary BitVectors --- 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) {