|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmars.simulator.BackStepper
public class BackStepper
Used to "step backward" through execution, undoing each instruction.
Constructor Summary | |
---|---|
BackStepper()
Create a fresh BackStepper. |
Method Summary | |
---|---|
int |
addConditionFlagClear(int flag)
Add a new "back step" (the undo action) to the stack. |
int |
addConditionFlagSet(int flag)
Add a new "back step" (the undo action) to the stack. |
int |
addCoprocessor0Restore(int register,
int value)
Add a new "back step" (the undo action) to the stack. |
int |
addCoprocessor1Restore(int register,
int value)
Add a new "back step" (the undo action) to the stack. |
int |
addDoNothing(int pc)
Add a new "back step" (the undo action) to the stack. |
int |
addMemoryRestoreByte(int address,
int value)
Add a new "back step" (the undo action) to the stack. |
int |
addMemoryRestoreHalf(int address,
int value)
Add a new "back step" (the undo action) to the stack. |
int |
addMemoryRestoreRawWord(int address,
int value)
Add a new "back step" (the undo action) to the stack. |
int |
addMemoryRestoreWord(int address,
int value)
Add a new "back step" (the undo action) to the stack. |
int |
addPCRestore(int value)
Add a new "back step" (the undo action) to the stack. |
int |
addRegisterFileRestore(int register,
int value)
Add a new "back step" (the undo action) to the stack. |
void |
backStep()
Carry out a "back step", which will undo the latest execution step. |
boolean |
empty()
Test whether there are steps that can be undone. |
boolean |
enabled()
Determine whether execution "undo" steps are currently being recorded. |
boolean |
inDelaySlot()
Determine whether the next back-step action occurred as the result of an instruction that executed in the "delay slot" of a delayed branch. |
void |
setEnabled(boolean state)
Set enable status. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BackStepper()
Method Detail |
---|
public boolean enabled()
public void setEnabled(boolean state)
state
- If true, will begin (or continue) recoding "undo" steps. If false, will stop.public boolean empty()
public boolean inDelaySlot()
public void backStep()
public int addMemoryRestoreRawWord(int address, int value)
address
- The affected memory address.value
- The "restore" value to be stored there.
public int addMemoryRestoreWord(int address, int value)
address
- The affected memory address.value
- The "restore" value to be stored there.
public int addMemoryRestoreHalf(int address, int value)
address
- The affected memory address.value
- The "restore" value to be stored there, in low order half.
public int addMemoryRestoreByte(int address, int value)
address
- The affected memory address.value
- The "restore" value to be stored there, in low order byte.
public int addRegisterFileRestore(int register, int value)
register
- The affected register number.value
- The "restore" value to be stored there.
public int addPCRestore(int value)
value
- The "restore" value to be stored there.
public int addCoprocessor0Restore(int register, int value)
register
- The affected register number.value
- The "restore" value to be stored there.
public int addCoprocessor1Restore(int register, int value)
register
- The affected register number.value
- The "restore" value to be stored there.
public int addConditionFlagSet(int flag)
flag
- The condition flag number.
public int addConditionFlagClear(int flag)
flag
- The condition flag number.
public int addDoNothing(int pc)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |