uk.ac.man.cs.rainbow.simulator
Interface RASMThread.TraceListener

Enclosing class:
RASMThread

public static interface RASMThread.TraceListener

Implemented by classes that want to watch what a thread is doing.

See Also:
RASMThread.execute(), RASMThread.addTraceListener(RASMThread.TraceListener), RASMThread.removeTraceListener(RASMThread.TraceListener)

Method Summary
 void trace(RASMCode code, int pc, Vector stack, int frame)
          Indicate what is about to be executed.
 

Method Detail

trace

public void trace(RASMCode code,
                  int pc,
                  Vector stack,
                  int frame)
Indicate what is about to be executed.
Parameters:
code - The block of code currently being executed in.
pc - The location in the block of code where the next instruction will be taken from.
stack - The stack of values. Do not modify.
frame - The base of the stack frame. Values below this in the stack are not available until after a Return has been performed.