Simple Machine

GraphicalUI
Class UI

java.lang.Object
  extended by SimpleMachine.AbstractUI
      extended by GraphicalUI.UI
All Implemented Interfaces:
java.util.Observer

public class UI
extends SimpleMachine.AbstractUI


Nested Class Summary
 
Nested classes/interfaces inherited from class SimpleMachine.AbstractUI
SimpleMachine.AbstractUI.Callback, SimpleMachine.AbstractUI.DebugPoint, SimpleMachine.AbstractUI.DebugType
 
Field Summary
static boolean MAC_OS_X
           
 
Fields inherited from class SimpleMachine.AbstractUI
applicationCopyright, applicationFullName, applicationName, applicationVersion, cpu, isMacShown, isRegFileInOwnCol, isSmallCurInsDpy, isSmallInsMemDpy, isTwoProcStateCols, mainMemory, memory, pc, processorState, registerFile
 
Constructor Summary
UI(AbstractCPU aCPU, Memory aMemory, java.lang.String options)
           
 
Method Summary
 void showBreak(SimpleMachine.AbstractUI.DebugPoint point, int value)
           
 void showHalted()
           
 void showInstr(int pc)
           
 void showMemRead(int pc, int address, byte[] value)
           
 void showMemWrite(int pc, int address, byte[] value)
           
 void showMessage(java.lang.String message)
           
 void showRegRead(int pc, int regNum, int value)
           
 void showRegWrite(int pc, int regNum, int value)
           
 
Methods inherited from class SimpleMachine.AbstractUI
addDebugPointObserver, clearAllDebugPoints, getPauseMilliseconds, gotoPC, halt, isDebugPointEnabled, run, setDebugPoint, setPauseMilliseconds, start, step, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAC_OS_X

public static boolean MAC_OS_X
Constructor Detail

UI

public UI(AbstractCPU aCPU,
          Memory aMemory,
          java.lang.String options)
Method Detail

showBreak

public void showBreak(SimpleMachine.AbstractUI.DebugPoint point,
                      int value)
Specified by:
showBreak in class SimpleMachine.AbstractUI

showInstr

public void showInstr(int pc)
Specified by:
showInstr in class SimpleMachine.AbstractUI

showRegRead

public void showRegRead(int pc,
                        int regNum,
                        int value)
Specified by:
showRegRead in class SimpleMachine.AbstractUI

showRegWrite

public void showRegWrite(int pc,
                         int regNum,
                         int value)
Specified by:
showRegWrite in class SimpleMachine.AbstractUI

showMemRead

public void showMemRead(int pc,
                        int address,
                        byte[] value)
Specified by:
showMemRead in class SimpleMachine.AbstractUI

showMemWrite

public void showMemWrite(int pc,
                         int address,
                         byte[] value)
Specified by:
showMemWrite in class SimpleMachine.AbstractUI

showHalted

public void showHalted()
Specified by:
showHalted in class SimpleMachine.AbstractUI

showMessage

public void showMessage(java.lang.String message)
Specified by:
showMessage in class SimpleMachine.AbstractUI

Simple Machine