projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Worked around rendering bug (model updates not resulting in a redraw)
[Mograsim.git]
/
net.mograsim.machine
/
src
/
net
/
mograsim
/
machine
/
Memory.java
diff --git
a/net.mograsim.machine/src/net/mograsim/machine/Memory.java
b/net.mograsim.machine/src/net/mograsim/machine/Memory.java
index
8297ebb
..
e421e47
100644
(file)
--- a/
net.mograsim.machine/src/net/mograsim/machine/Memory.java
+++ b/
net.mograsim.machine/src/net/mograsim/machine/Memory.java
@@
-17,4
+17,13
@@
public interface Memory<T>
public void setCell(long address, T data);
public long size();
public void setCell(long address, T data);
public long size();
+
+ /**
+ * Registers an observer to be notified when a memory cell is modified
+ */
+ public void registerObserver(MemoryObserver ob);
+
+ public void deregisterObserver(MemoryObserver ob);
+
+ public void notifyObservers(long address);
}
}