Enum Class CPU.RunState
- All Implemented Interfaces:
Serializable, Comparable<CPU.RunState>, Constable
- Enclosing interface:
CPU
The run state of the CPU.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCPU is running.CPU is stopped because of address fallout error.CPU is stopped because of instruction fallout (unknown instruction) error.CPU is in breakpoint state (paused).CPU is stopped (naturally or by user) and should not be run until it is reset. -
Method Summary
Modifier and TypeMethodDescriptiontoString()static CPU.RunStateReturns the enum constant of this class with the specified name.static CPU.RunState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STATE_STOPPED_NORMAL
CPU is stopped (naturally or by user) and should not be run until it is reset. -
STATE_STOPPED_BREAK
CPU is in breakpoint state (paused). -
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
CPU is stopped because of instruction fallout (unknown instruction) error. It should not be run until it is reset. -
STATE_RUNNING
CPU is running.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<CPU.RunState>
-