Class ProgramSimulator
- java.lang.Object
-
- ru.ispras.microtesk.tools.simulator.ProgramSimulator
-
public class ProgramSimulator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ProgramSimulator(ProgramImage programImage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCurrentPc()
long
getRegisterValue(Item registerMode, int number)
boolean
hasNext()
ConcreteCall
nextInstruction()
java.lang.String
nextInstructionText()
void
nextStep()
Executes theConcreteCall
and if it was the last program instruction changes the stateterminateProgram
totrue
.boolean
simulate()
-
-
-
Constructor Detail
-
ProgramSimulator
public ProgramSimulator(ProgramImage programImage)
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
nextInstruction
public ConcreteCall nextInstruction()
-
nextInstructionText
public java.lang.String nextInstructionText()
-
nextStep
public void nextStep()
Executes theConcreteCall
and if it was the last program instruction changes the stateterminateProgram
totrue
.
-
getRegisterValue
public long getRegisterValue(Item registerMode, int number)
-
simulate
public boolean simulate()
-
getCurrentPc
public long getCurrentPc()
-
-