|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmce.sim.AbstractHardware
jmce.Monitor
public class Monitor
Debug monitor for JMCE CPU.
Constructor Summary | |
---|---|
Monitor()
|
Method Summary | |
---|---|
void |
addCommand(Command cmd)
|
void |
error(java.lang.String s)
|
void |
exceptionEvent(ExceptionEvent ev)
|
int |
getch()
|
Command |
getCommandAt(int i)
|
int |
getCommandCount()
|
CPU |
getCPU()
|
void |
getLine(java.lang.String prompt,
java.lang.StringBuffer line)
|
Tape |
getTape()
|
void |
init(Hardware parent)
Initialize the hardware. |
void |
print(java.lang.Object o)
|
void |
println()
|
void |
println(java.lang.Object o)
|
void |
printStatusLine(int n,
java.lang.String s)
|
void |
putchar(int c)
|
void |
reset()
Reset the the device to the initial state. |
void |
run()
|
void |
selectCPU(CPU cpu)
|
void |
setConsole(Device<java.lang.Integer> c)
Set the Terminal / Console used bye the monitor. |
void |
showCpu()
|
void |
trace(java.lang.String s)
When the cpu execute one istruction trace the execution and send to this listener the String with the description with the executed code. |
Methods inherited from class jmce.sim.AbstractHardware |
---|
addHardware, createFrame, destroy, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, initSwing, removeHardware, removeHardware, setHardware, setHardware, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Monitor()
Method Detail |
---|
public CPU getCPU()
public void addCommand(Command cmd)
public int getCommandCount()
public Command getCommandAt(int i)
public int getch() throws java.lang.Exception
java.lang.Exception
public void printStatusLine(int n, java.lang.String s)
public void println()
println
in interface Console
public void println(java.lang.Object o)
println
in interface Console
public void print(java.lang.Object o)
print
in interface Console
public void putchar(int c)
putchar
in interface Console
public void getLine(java.lang.String prompt, java.lang.StringBuffer line) throws java.lang.Exception
java.lang.Exception
public void run()
run
in interface java.lang.Runnable
public void error(java.lang.String s) throws java.lang.Exception
java.lang.Exception
public void setConsole(Device<java.lang.Integer> c)
public void init(Hardware parent) throws SIMException
Hardware
init
in interface Hardware
init
in class AbstractHardware
parent
- Parent of this hardware.
SIMException
public void reset() throws SIMException
Hardware
reset
in interface Hardware
reset
in class AbstractHardware
SIMException
public Tape getTape() throws java.lang.Exception
java.lang.Exception
public void selectCPU(CPU cpu)
public void trace(java.lang.String s) throws SIMException
TraceListener
trace
in interface TraceListener
s
- - String with code executed.
SIMException
public void exceptionEvent(ExceptionEvent ev)
exceptionEvent
in interface ExceptionListener
public void showCpu() throws java.lang.Exception
java.lang.Exception
|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |