Interface DebuggablePIC

All Known Implementing Classes:
DebuggablePIC_std

public interface DebuggablePIC
extends PIC

This interface is a PIC that offers internal access and other features to make it debuggable.
You can read the source of this interface here.


Method Summary
 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 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 interface PIC
addComponentToNotify, ExecInstruction, ReprogramFlash, Reset, Run
 
Methods inherited from interface DigitalComponent
connectPin, getState, isPinConnected, notifyOneCycle, setPinState, setPinStateDontNotify
 

Method Detail

Trace

public void Trace()
Executes one instruction.

getPC

public int getPC()
Returns the program counter.

setPC

public void setPC(int n)
Sets the program counter.

getW

public int getW()
Returns the W register.

setW

public void setW(int n)
Sets the W register.

getSP

public int getSP()
Returns the stack pointer.

setSP

public void setSP(int n)
Sets the stack pointer.

getStack

public int getStack(int Level)
Returns the Level element of the stack.

setStack

public void setStack(int Level,
                     int n)
Sets the Level element of the stack.

getFlashMemory

public DebuggableFlash getFlashMemory()
Returns the DebuggableFlash.

getFileRegisters

public DebuggableFileRegisters getFileRegisters()
Returns the DebuggableFileRegisters.

getStateForDisplay

public java.lang.String[] getStateForDisplay()
Returns the state of the PIC.

getStackForDisplay

public java.lang.String[] getStackForDisplay()
Returns the stack for display.

getFlashForDisplay

public java.lang.String[] getFlashForDisplay()
Returns the program loaded into the flash for display.

getFlashRefresh

public java.lang.String getFlashRefresh(int n,
                                        java.lang.String s)
Refreshes the flash program.
Parameters:
n - The address of the instruction to refresh.
Returns:
The refreshed instruction.

getBreakpointsForDisplay

public java.lang.String[] getBreakpointsForDisplay()
Returns the breakpoints for display.

setBreakpoint

public void setBreakpoint(int n)
Sets a breakpoint to address n.

getBreakpoint

public int getBreakpoint(int n)
Retunrs the address of the nth breakpoint.

isBreakpoint

public boolean isBreakpoint(int n)
Returns true if there already is a breakpoint at address n.

removeBreakpoint

public void removeBreakpoint(int n)
Removes the breakpoint at address n.