All Packages Class Hierarchy This Package Previous Next Index
Interface duckMachine.architecture.MemoryI
- public interface MemoryI
The specification of the memory unit of the machine.
-
DEFAULT_SIZE
-
-
fetch(Word)
- Returns the contents of a specified address.
-
getSize()
-
-
store(Word, Word)
- Stores a word in a specified address.
DEFAULT_SIZE
public static final int DEFAULT_SIZE
getSize
public abstract int getSize()
fetch
public abstract Word fetch(Word a) throws MemoryE
- Returns the contents of a specified address.
- Parameters:
- a - The address.
- Throws: MemoryE
- If the address is out of range.
- See Also:
- Word
store
public abstract void store(Word a,
Word v) throws MemoryE
- Stores a word in a specified address.
- Parameters:
- a - The address.
- v - The object to store in the address.
- Throws: MemoryE
- If the address is out of range.
- See Also:
- Word
All Packages Class Hierarchy This Package Previous Next Index