Interface CPU.CPUListener

  • Enclosing interface:

    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 Detail

      • runStateChanged

        void runStateChanged​(CPU.RunState runState)
        Invoked when an CPU's run state changes.
        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.