29bfcb9ee54dc9d8b114d46c6d9bb7d9c923287b
[Mograsim.git] / net.mograsim.machine / src / net / mograsim / machine / MicroprogramMemory.java
1 package net.mograsim.machine;
2
3 public interface MicroprogramMemory {
4         
5         /**
6          * @param address The address of the desired instruction. Must be non-negative
7          * @return The instruction at the requested address
8          * 
9          * @throws IndexOutOfBoundsException
10          */
11         public MicroInstruction getInstruction(long address);
12         
13         /**
14          * Sets the instruction at the supplied address
15          * @param address 
16          * @param instruction
17          * 
18          * @throws IndexOutOfBoundsException
19          */
20         public void setInstruction(long address, MicroInstruction instruction);
21 }