Package mars.mips.instructions
Interface SimulationCode
public interface SimulationCode
Interface to represent the method for simulating the execution of a specific
MIPS basic instruction. It will be implemented by the anonymous class created
in the last argument to the BasicInstruction constructor.
- Version:
- August 2003
- Author:
- Pete Sanderson
-
Method Summary
Modifier and TypeMethodDescriptionvoid
simulate(ProgramStatement statement)
Method to simulate the execution of a specific MIPS basic instruction.
-
Method Details
-
simulate
Method to simulate the execution of a specific MIPS basic instruction.- Parameters:
statement
- A ProgramStatement representing the MIPS instruction to simulate.- Throws:
ProcessingException
- This is a run-time exception generated during simulation.
-