Package mars.mips.instructions
Interface SimulationFunction
public interface SimulationFunction
Functional interface providing a method for simulating the execution of a specific MIPS basic instruction.
- Author:
- Pete Sanderson, August 2003
-
Method Summary
Modifier and TypeMethodDescriptionvoidsimulate(BasicStatement statement) Simulate the execution of a statement in a program.
-
Method Details
-
simulate
Simulate the execution of a statement in a program.- Parameters:
statement- The statement to simulate execution of.- Throws:
SimulatorException- Thrown if a runtime exception was generated during execution.InterruptedException- Thrown if the simulator was stopped during execution.
-