jmce - 1_02

jmce.sim
Class BreakPointExec

java.lang.Object
  extended by jmce.sim.BreakPoint
      extended by jmce.sim.BreakPointRead
          extended by jmce.sim.BreakPointExec
All Implemented Interfaces:
MemoryReadListener

public class BreakPointExec
extends BreakPointRead

Breakpoint on memory exec (read).

Version:
1.00
Author:
Mario Viara

Field Summary
 
Fields inherited from class jmce.sim.BreakPoint
address, cpu, enabled, enabled1, fireCounter, listener, memory, name
 
Constructor Summary
BreakPointExec(CPU cpu, BreakPointListener l, Memory memory, int address)
          Execution break point constructor.
 
Method Summary
 int readMemory(int a, int value)
          Called when the memory where the break point is connecected is read.
 
Methods inherited from class jmce.sim.BreakPointRead
destroy, readMemory
 
Methods inherited from class jmce.sim.BreakPoint
fireBreakPoint, formatMsg, getAddress, getFireCount, getMemory, isEnabled, setEnabled, setEnabled1, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BreakPointExec

public BreakPointExec(CPU cpu,
                      BreakPointListener l,
                      Memory memory,
                      int address)
Execution break point constructor.

Constructor for a break point that must be fired when one istruction is executed.

Parameters:
cpu - - Cpu
l - - Listener for break point event.
memory - - Memory where put the break point.
address - - Address of this break point in the specified memory.
Method Detail

readMemory

public int readMemory(int a,
                      int value)
               throws java.lang.Exception
Called when the memory where the break point is connecected is read. Check if the program counter of the CPU is set at this address and if so fire the break point if enabled

Throws:
java.lang.Exception

jmce - 1_02