All Packages Class Hierarchy This Package Previous Next Index
Class duckMachine.architecture.CachedMemory
java.lang.Object
|
+----duckMachine.architecture.Memory
|
+----duckMachine.architecture.CachedMemory
- public class CachedMemory
- extends Memory
Memory with cache.
-
CachedMemory(int, int)
-
-
fetch(Word)
- Returns the contents of a specified address.
-
store(Word, Word)
- Stores a word in a specified address.
CachedMemory
public CachedMemory(int c,
int s)
fetch
public Word fetch(Word addr) throws MemoryE
- Returns the contents of a specified address.
- Overrides:
- fetch in class Memory
store
public void store(Word addr,
Word word) throws MemoryE
- Stores a word in a specified address.
- Overrides:
- store in class Memory
All Packages Class Hierarchy This Package Previous Next Index