|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DigitalComponent_std | +--PIC_std | +--DebuggablePIC_std
You can read the source of this class here.
Constructor Summary | |
DebuggablePIC_std()
Creates a new DebuggablePIC_std without any program. |
|
DebuggablePIC_std(CompiledProgram prog)
Creates a new DebuggablePIC_std with a program. |
|
DebuggablePIC_std(DigitalComponentUI dui)
Creates a new DebuggablePIC_std without any program with an UI. |
Method Summary | |
java.lang.String |
DisplayInstruction()
|
int |
getBreakpoint(int n)
Retunrs the address of the nth breakpoint. |
java.lang.String[] |
getBreakpointsForDisplay()
Returns the breakpoints for display. |
DebuggableFileRegisters |
getFileRegisters()
Returns the DebuggableFileRegisters. |
java.lang.String[] |
getFlashForDisplay()
Returns the program loaded into the flash for display. |
DebuggableFlash |
getFlashMemory()
Returns the DebuggableFlash. |
java.lang.String |
getFlashRefresh(int n,
java.lang.String s)
Refreshes the flash program. |
int |
getPC()
Returns the program counter. |
int |
getSP()
Returns the stack pointer. |
int |
getStack(int Level)
Returns the Level element of the stack. |
java.lang.String[] |
getStackForDisplay()
Returns the stack for display. |
java.lang.String[] |
getStateForDisplay()
Returns the state of the PIC. |
int |
getW()
Returns the W register. |
boolean |
isBreakpoint(int n)
Returns true if there already is a breakpoint at address n. |
void |
removeBreakpoint(int n)
Removes the breakpoint at address n. |
void |
ReprogramFlash(CompiledProgram prog)
Reprograms the PIC. |
void |
setBreakpoint(int n)
Sets a breakpoint to address n. |
void |
setPC(int n)
Sets the program counter. |
void |
setSP(int n)
Sets the stack pointer. |
void |
setStack(int Level,
int n)
Sets the Level element of the stack. |
void |
setW(int n)
Sets the W register. |
void |
Trace()
Executes one instruction. |
Methods inherited from class PIC_std |
addComponentToNotify,
connectPin,
ExecInstruction,
getState,
notifyOneCycle,
Reset,
Run,
setPinStateDontNotify |
Methods inherited from class DigitalComponent_std |
isPinConnected,
refreshDisplay,
setPinState |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DebuggablePIC_std()
public DebuggablePIC_std(DigitalComponentUI dui)
public DebuggablePIC_std(CompiledProgram prog)
prog
- The program.Method Detail |
public void Trace()
public void ReprogramFlash(CompiledProgram prog)
prog
- The new program.public int getPC()
public void setPC(int n)
public int getW()
public void setW(int n)
public int getSP()
public void setSP(int n)
public int getStack(int Level)
public void setStack(int Level, int n)
public DebuggableFlash getFlashMemory()
public DebuggableFileRegisters getFileRegisters()
public java.lang.String[] getStateForDisplay()
public java.lang.String DisplayInstruction()
public java.lang.String[] getStackForDisplay()
public java.lang.String[] getFlashForDisplay()
public java.lang.String getFlashRefresh(int n, java.lang.String s)
n
- The address of the instruction to refresh.public java.lang.String[] getBreakpointsForDisplay()
public int getBreakpoint(int n)
public void setBreakpoint(int n)
public boolean isBreakpoint(int n)
public void removeBreakpoint(int n)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |