Package edu.iu.jrsalata
Enum Class Format
- All Implemented Interfaces:
Serializable
,Comparable<Format>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresents assembler directivesRepresents format 1 1 byte containing the opcodeRepresents SIC-only statementsRepresents format 3 and 4 3/4 bytes 6 bits for opcode 2 bits for addressing mode 1/2 byte for other flags 3/2 bytes for displacement +1 byte if format 4Represents format 2 2 bytes 1 byte containing the opcode 1/2 byte containing register 1 1/2 byte containing register 2 -
Method Summary
-
Enum Constant Details
-
ONE
Represents format 1 1 byte containing the opcode -
TWO
Represents format 2 2 bytes 1 byte containing the opcode 1/2 byte containing register 1 1/2 byte containing register 2 -
THREE
Represents format 3 and 4 3/4 bytes 6 bits for opcode 2 bits for addressing mode 1/2 byte for other flags 3/2 bytes for displacement +1 byte if format 4 -
ASM
Represents assembler directives -
SIC
Represents SIC-only statements
-
-
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
-