misim
Interface ClockListener
- All Known Subinterfaces:
- ChainedClockListener
- All Known Implementing Classes:
- PIC84_Intcon
- public interface ClockListener
The ClockListener interface allows external events that are
synchronised with the processor clock to be implemented.
Usually, this is implemented by a processor Register that will handle
interrupts. In the Pic 16C84, this is the Intcon Register.
Note that event handlers may be chained - typically, the processor
will implement the ClockListener interface in a class that performs
all internally synchronised functions (such as interrupts).
Additional ClockListener handlers (for instance, Plugins) should
implement the ChainedClockListener interface.
- See Also:
ChainedClockListener
Method Summary |
void |
clockEvent(long clocks)
This method is called after each instruction is executed. |
void |
prepare(long clocks)
Prepare for emulation, beginning at the given clock count |
prepare
public void prepare(long clocks)
- Prepare for emulation, beginning at the given clock count
- Parameters:
clocks
- The clock count that emulation will start at
clockEvent
public void clockEvent(long clocks)
- This method is called after each instruction is executed. Note that
the number of clocks since the last call may be more than 1. This
will occur for some branch instructions, and when loops have been
optimised - resulting in a sequence of loop instructions being
emulated in a single atomic event.
- Parameters:
clocks
- The current clock count for the processor