Package net.emustudio.emulib.plugins.cpu
Enum CPU.RunState
- java.lang.Object
-
- java.lang.Enum<CPU.RunState>
-
- net.emustudio.emulib.plugins.cpu.CPU.RunState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CPU.RunState>
- Enclosing interface:
- CPU
public static enum CPU.RunState extends java.lang.Enum<CPU.RunState>
The run state of the CPU.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description STATE_RUNNING
CPU is running.STATE_STOPPED_ADDR_FALLOUT
CPU is stopped because of address fallout error.STATE_STOPPED_BAD_INSTR
CPU is stopped because of instruction fallout (unknown instruction) error.STATE_STOPPED_BREAK
CPU is in breakpoint state (paused).STATE_STOPPED_NORMAL
CPU is stopped (naturally or by user) and should not be run until it is reset.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
static CPU.RunState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CPU.RunState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static CPU.RunState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CPU.RunState c : CPU.RunState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CPU.RunState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<CPU.RunState>
-
-