projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MemoryView is now updated when the memory is modified
[Mograsim.git]
/
net.mograsim.machine
/
src
/
net
/
mograsim
/
machine
/
MainMemory.java
diff --git
a/net.mograsim.machine/src/net/mograsim/machine/MainMemory.java
b/net.mograsim.machine/src/net/mograsim/machine/MainMemory.java
index
f1827ef
..
dcd3ee2
100644
(file)
--- a/
net.mograsim.machine/src/net/mograsim/machine/MainMemory.java
+++ b/
net.mograsim.machine/src/net/mograsim/machine/MainMemory.java
@@
-1,10
+1,16
@@
package net.mograsim.machine;
package net.mograsim.machine;
+import java.math.BigInteger;
+
import net.mograsim.logic.core.types.BitVector;
import net.mograsim.logic.core.types.BitVector;
-public interface MainMemory {
+public interface MainMemory
extends Memory<BitVector>
{
- public Bi
tVector getCell
(long address);
- public void setCell
(long address, BitVecto
r word);
+ public Bi
gInteger getCellAsBigInteger
(long address);
+ public void setCell
AsBigInteger(long address, BigIntege
r word);
public MainMemoryDefinition getDefinition();
public MainMemoryDefinition getDefinition();
+ public default long size()
+ {
+ return getDefinition().size();
+ }
}
}