Enum Class CPU.RunState

java.lang.Object
java.lang.Enum<CPU.RunState>
net.emustudio.emulib.plugin.cpu.CPU.RunState
All Implemented Interfaces:
Serializable, Comparable<CPU.RunState>, Constable
Enclosing interface:
CPU

public static enum CPU.RunState extends Enum<CPU.RunState>
The run state of the CPU.
  • Enum Constant Details

    • STATE_STOPPED_NORMAL

      public static final CPU.RunState STATE_STOPPED_NORMAL
      CPU is stopped (naturally or by user) and should not be run until it is reset.
    • STATE_STOPPED_BREAK

      public static final CPU.RunState STATE_STOPPED_BREAK
      CPU is in breakpoint state (paused).
    • STATE_STOPPED_ADDR_FALLOUT

      public static final CPU.RunState STATE_STOPPED_ADDR_FALLOUT
      CPU is stopped because of address fallout error. It should not be run until it is reset.
    • STATE_STOPPED_BAD_INSTR

      public static final CPU.RunState STATE_STOPPED_BAD_INSTR
      CPU is stopped because of instruction fallout (unknown instruction) error. It should not be run until it is reset.
    • STATE_RUNNING

      public static final CPU.RunState STATE_RUNNING
      CPU is running.
  • Method Details

    • values

      public static CPU.RunState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CPU.RunState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CPU.RunState>