|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmce.sim.BreakPoint
public abstract class BreakPoint
Base class for all type of break point.
Every break point have 2 enable the first one using the standard method setEnabled/getEnabled is used from the application to control the break point the second,using the method setEnabled1/getEnabled1. used from the CPU simulator to avoid break point detection during critical code execution.
Field Summary | |
---|---|
protected int |
address
|
protected CPU |
cpu
|
protected boolean |
enabled
|
protected boolean |
enabled1
|
protected int |
fireCounter
|
protected BreakPointListener |
listener
|
protected Memory |
memory
|
protected java.lang.String |
name
|
Method Summary | |
---|---|
abstract void |
destroy()
Destroy the break point. |
void |
fireBreakPoint(java.lang.String msg)
Fire the break point. |
protected java.lang.String |
formatMsg(int address,
int value)
Prepare a string for this break point |
int |
getAddress()
Return the address where the break point is inserted. |
int |
getFireCount()
Return the number of times the break point has been fired. |
Memory |
getMemory()
Return the Memory where the break point is connected. |
boolean |
isEnabled()
Return the status of the break point. |
void |
setEnabled(boolean mode)
|
void |
setEnabled1(boolean mode)
Enable/disable the break point. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int address
protected boolean enabled
protected boolean enabled1
protected Memory memory
protected int fireCounter
protected BreakPointListener listener
protected java.lang.String name
protected CPU cpu
Method Detail |
---|
public final int getAddress()
public final Memory getMemory()
public final void setEnabled(boolean mode)
public final void setEnabled1(boolean mode)
public final boolean isEnabled()
setEnabled(boolean)
protected java.lang.String formatMsg(int address, int value)
public int getFireCount()
public void fireBreakPoint(java.lang.String msg)
msg
- - Messagge string.public abstract void destroy()
Must unregister all memory read / write listener and free all used resources.
public java.lang.String toString()
toString
in class java.lang.Object
|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |