Package net.emustudio.emulib.plugins.cpu
Interface CPU.CPUListener
-
- Enclosing interface:
- CPU
public static interface CPU.CPUListener
Interface for receiving CPU events. The class which is interested in processing CPU events implements this interface, and the object created with that class is registered with a CPU, using the CPU's addCPUListener method. When the CPU event occurs, that:- if the event is CPU's state change, then object's
internalStateChanged()
method is invoked. - if the event is CPU's run state change, then object's
runStateChanged()
method is invoked.
CONTRACT: Never call further actions on CPU (start,stop,step,reset) from the same thread as from which these methods are called.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
internalStateChanged()
Invoked when an CPU's internal state changes.void
runStateChanged(CPU.RunState runState)
Invoked when an CPU's run state changes.
-
-
-
Method Detail
-
runStateChanged
void runStateChanged(CPU.RunState runState)
Invoked when an CPU's run state changes.- Parameters:
runState
- new run state of the CPU
-
internalStateChanged
void internalStateChanged()
Invoked when an CPU's internal state changes. The state can be register change, flags change, or other CPU's internal state change.
-
-