Generalized common functionality of different Memories to new interface
[Mograsim.git] / net.mograsim.machine / src / net / mograsim / machine / MicroprogramMemory.java
index 29bfcb9..333f8a6 100644 (file)
@@ -1,21 +1,5 @@
 package net.mograsim.machine;
 
-public interface MicroprogramMemory {
-       
-       /**
-        * @param address The address of the desired instruction. Must be non-negative
-        * @return The instruction at the requested address
-        * 
-        * @throws IndexOutOfBoundsException
-        */
-       public MicroInstruction getInstruction(long address);
-       
-       /**
-        * Sets the instruction at the supplied address
-        * @param address 
-        * @param instruction
-        * 
-        * @throws IndexOutOfBoundsException
-        */
-       public void setInstruction(long address, MicroInstruction instruction);
+public interface MicroprogramMemory extends Memory<MicroInstruction>
+{
 }