Added active instruction preview to LogicUIPart
[Mograsim.git] / plugins / net.mograsim.machine / src / net / mograsim / machine / mi / MicroInstructionMemory.java
index 5d4fac6..abfed46 100644 (file)
@@ -4,5 +4,17 @@ import net.mograsim.machine.Memory;
 
 public interface MicroInstructionMemory extends Memory<MicroInstruction>
 {
+       @Override
        public MicroInstructionMemoryDefinition getDefinition();
+
+       public void registerActiveMicroInstructionChangedListener(ActiveMicroInstructionChangedListener ob);
+
+       public void deregisterActiveMicroInstructionChangedListener(ActiveMicroInstructionChangedListener ob);
+
+       public void setActiveInstruction(long address);
+
+       public static interface ActiveMicroInstructionChangedListener
+       {
+               public void activeMicroInstructionChanged(long address);
+       }
 }