projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug with Exception being thrown with wrong cause
[Mograsim.git]
/
plugins
/
net.mograsim.machine
/
src
/
net
/
mograsim
/
machine
/
Memory.java
diff --git
a/plugins/net.mograsim.machine/src/net/mograsim/machine/Memory.java
b/plugins/net.mograsim.machine/src/net/mograsim/machine/Memory.java
index
0ff9bb4
..
4f0e58f
100644
(file)
--- a/
plugins/net.mograsim.machine/src/net/mograsim/machine/Memory.java
+++ b/
plugins/net.mograsim.machine/src/net/mograsim/machine/Memory.java
@@
-26,11
+26,15
@@
public interface Memory<T>
/**
* Registers an observer to be notified when a memory cell is modified
*/
/**
* Registers an observer to be notified when a memory cell is modified
*/
- public void register
Observer(MemoryObserv
er ob);
+ public void register
CellModifiedListener(MemoryCellModifiedListen
er ob);
- public void deregisterObserver(MemoryObserver ob);
-
- public void notifyObservers(long address);
+ public void deregisterCellModifiedListener(MemoryCellModifiedListener ob);
public MemoryDefinition getDefinition();
public MemoryDefinition getDefinition();
+
+ public static interface MemoryCellModifiedListener
+ {
+ public void update(long address);
+ }
+
}
}