|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Debugger_std
You can read the source of this class here.
Constructor Summary | |
Debugger_std()
|
|
Debugger_std(DigitalComponentUI dui)
|
Method Summary | |
void |
Animate()
Runs the PIC and display state after each instruction. |
void |
AssembleAndLoadSource()
Assembles and loadsthe source code. |
void |
DisplayAll()
Displays state, stacl, current instruction and file registers |
void |
DisplayBreakpoints()
Displays the breakpoints. |
int |
GetBreakpoint(int n)
Returns the nth breakpoint. |
int |
getLabelAddress(int index)
Returns the address of the indexth label. |
int |
getPC()
Returns the program counter of the PIC. |
PIC |
getPIC()
Returns the PIC so that links to other DigitalComponent can be made. |
boolean |
IsBreakpoint(int n)
Returns true if there is a breakpoint at address n. |
void |
LoadProgram(CompiledProgram prog)
Loads a program into the PIC. |
void |
LoadProgram(java.lang.String fn)
Loads a program into the PIC. |
void |
LoadSource(java.lang.String filename)
|
void |
RemoveBreakpoint(int n)
Removes the breakpoint at address n. |
void |
Run()
Runs the PIC. |
boolean |
Running()
Returns the running state of the PIC. |
void |
SaveProgram(java.lang.String filename)
Saves the loaded program. |
void |
SaveSource(java.lang.String filename)
Saves the source that's in the editor. |
void |
SetBreakpoint(int n)
Sets a breakpoint to address n. |
void |
setPC(int n)
Sets the program counter. |
void |
StepOver()
Executes one instruction but steps over calls. |
void |
Stop()
Stops the PIC. |
void |
Trace()
Executes one instruction. |
void |
UpdateSource(java.lang.String s)
Updates the source code. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Debugger_std()
public Debugger_std(DigitalComponentUI dui)
Method Detail |
public PIC getPIC()
public void Animate()
public void Trace()
public void StepOver()
public void Run()
public void Stop()
public boolean Running()
public int getLabelAddress(int index)
public void LoadProgram(CompiledProgram prog)
prog
- CompiledProgram to load.public void LoadProgram(java.lang.String fn)
fn
- File name of the file containing the program to load.public void SaveProgram(java.lang.String filename)
filename
- Name of the file.public void UpdateSource(java.lang.String s)
s
- New source code.public void LoadSource(java.lang.String filename)
public void SaveSource(java.lang.String filename)
filename
- Name of the file.public void AssembleAndLoadSource()
public void DisplayAll()
public void DisplayBreakpoints()
public int GetBreakpoint(int n)
public void SetBreakpoint(int n)
public boolean IsBreakpoint(int n)
public void RemoveBreakpoint(int n)
public int getPC()
public void setPC(int n)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |