avrora.sim
Interface Simulator.Watch

All Known Implementing Classes:
MemoryCounter, MemoryProfiler, MulticastWatch
Enclosing interface:
Simulator

public static interface Simulator.Watch

The MemoryProbe interface represents a user probe that is fired when a watchpoint detects an access to an address where this memory probe has been inserted.


Method Summary
 void fireAfterRead(Instr i, int address, State state, int data_addr, byte value)
          The fireAfterRead() method is called after the data address is read by the program.
 void fireAfterWrite(Instr i, int address, State state, int data_addr, byte value)
          The fireAfterWrite() method is called after the data address is written by the program.
 void fireBeforeRead(Instr i, int address, State state, int data_addr, byte value)
          The fireBeforeRead() method is called before the data address is read by the program.
 void fireBeforeWrite(Instr i, int address, State state, int data_addr, byte value)
          The fireBeforeWrite() method is called before the data address is written by the program.
 

Method Detail

fireBeforeRead

public void fireBeforeRead(Instr i,
                           int address,
                           State state,
                           int data_addr,
                           byte value)
The fireBeforeRead() method is called before the data address is read by the program.

Parameters:
i - the instruction being probed
address - the address at which this instruction resides
state - the state of the simulation
data_addr - the address of the data being referenced
value - the value of the memory location being read

fireBeforeWrite

public void fireBeforeWrite(Instr i,
                            int address,
                            State state,
                            int data_addr,
                            byte value)
The fireBeforeWrite() method is called before the data address is written by the program.

Parameters:
i - the instruction being probed
address - the address at which this instruction resides
state - the state of the simulation
data_addr - the address of the data being referenced
value - the value being written to the memory location

fireAfterRead

public void fireAfterRead(Instr i,
                          int address,
                          State state,
                          int data_addr,
                          byte value)
The fireAfterRead() method is called after the data address is read by the program.

Parameters:
i - the instruction being probed
address - the address at which this instruction resides
state - the state of the simulation
data_addr - the address of the data being referenced
value - the value of the memory location being read

fireAfterWrite

public void fireAfterWrite(Instr i,
                           int address,
                           State state,
                           int data_addr,
                           byte value)
The fireAfterWrite() method is called after the data address is written by the program.

Parameters:
i - the instruction being probed
address - the address at which this instruction resides
state - the state of the simulation
data_addr - the address of the data being referenced
value - the value being written to the memory location