Enum Class ACS.OPS
- All Implemented Interfaces:
Serializable
,Comparable<ACS.OPS>
,Constable
- Enclosing class:
- ACS
Operators for
gendec
auto-conversion semantics.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInteger addition.
Bitsize may be specified, as well as extension mode, if parts of the operation takes place on parts of the sources.Needs a custom (specific) handler.Unconditional branch, for regular branching or call-to-sub branching.
- Required: src1: the target address.
- Optional: src2: added to the target if provided.
- Optional: dst: a link register that will receive the fall-through address, for call-to-sub branching.
- Optional: maskOnSource: AND'ed to the calculated before assigning to PC.Conditional branch.SeeJUMP_IF_EQ
.SeeJUMP_IF_EQ
.SeeJUMP_IF_EQ
.SeeJUMP_IF_EQ
.SeeJUMP_IF_EQ
.SeeJUMP_IF_EQ
.SeeJUMP_IF_EQ
.SeeJUMP_IF_EQ
.SeeJUMP_IF_EQ
.Move from memory.Generic move.No-operation.Set/reset destination is 2 source operands are equals/not equals.
- Required: src1, src2: operands for comparison.
- Required: src3: target address.SeeSET_IF_EQ
.SeeSET_IF_EQ
.SeeSET_IF_EQ
.SeeSET_IF_EQ
.SeeSET_IF_EQ
.SeeSET_IF_EQ
.SeeSET_IF_EQ
.SeeSET_IF_EQ
.SeeSET_IF_EQ
.Move to memory.Integer subtraction. -
Method Summary
Modifier and TypeMethodDescriptionStraight-up conversion to anOperationType
.static ACS.OPS
Returns the enum constant of this class with the specified name.static ACS.OPS[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CUSTOM
Needs a custom (specific) handler. Can be used for instructions requiring manual conversion. -
NOP
No-operation. Used to generate anIENop
. -
MOVE
-
STORE
Move to memory.DST = SRC1 (DST must be a MEMORY operand) or: [SRC2] = SRC1 or: [SRC2 + SRC3] = SRC1 If bitsize is unspecified: bitsize(SRC1) is assumed Extension mode is N/A
-
LOAD
Move from memory.DST = xxx_EXTEND_TO_DSTSIZE(SRC1) // src1 must be a mem or: DST = xxx_EXTEND_TO_DSTSIZE(msize[SRC1]) // bitsize must be specified or: DST = xxx_EXTEND_TO_DSTSIZE(msize[SRC1 + SRC2]) // bitsize must be specified
Bitsize should be specified. In the general, the destination (register) is larger than the memory access. The extension mode may be specified. -
ADD
Integer addition.
Bitsize may be specified, as well as extension mode, if parts of the operation takes place on parts of the sources. -
SUB
Integer subtraction. -
MUL
-
DIV_S
-
DIV_U
-
REM_S
-
REM_U
-
AND
-
OR
-
XOR
-
NOT
-
SHL
-
SHR
-
SAR
-
SET_IF_EQ
Set/reset destination is 2 source operands are equals/not equals.
- Required: src1, src2: operands for comparison.
- Required: src3: target address. -
SET_IF_NE
SeeSET_IF_EQ
. -
SET_IF_LT_S
SeeSET_IF_EQ
. -
SET_IF_LT_U
SeeSET_IF_EQ
. -
SET_IF_LE_S
SeeSET_IF_EQ
. -
SET_IF_LE_U
SeeSET_IF_EQ
. -
SET_IF_GT_S
SeeSET_IF_EQ
. -
SET_IF_GT_U
SeeSET_IF_EQ
. -
SET_IF_GE_S
SeeSET_IF_EQ
. -
SET_IF_GE_U
SeeSET_IF_EQ
. -
JUMP_IF_EQ
Conditional branch. Needs three operands: two sources for comparison; a third source being the target address (could be a register, or an immediate address that was encoded as a PC-relative disp. for ex.) -
JUMP_IF_NE
SeeJUMP_IF_EQ
. -
JUMP_IF_LT_S
SeeJUMP_IF_EQ
. -
JUMP_IF_LT_U
SeeJUMP_IF_EQ
. -
JUMP_IF_LE_S
SeeJUMP_IF_EQ
. -
JUMP_IF_LE_U
SeeJUMP_IF_EQ
. -
JUMP_IF_GT_S
SeeJUMP_IF_EQ
. -
JUMP_IF_GT_U
SeeJUMP_IF_EQ
. -
JUMP_IF_GE_S
SeeJUMP_IF_EQ
. -
JUMP_IF_GE_U
SeeJUMP_IF_EQ
. -
JUMP
Unconditional branch, for regular branching or call-to-sub branching.
- Required: src1: the target address.
- Optional: src2: added to the target if provided.
- Optional: dst: a link register that will receive the fall-through address, for call-to-sub branching.
- Optional: maskOnSource: AND'ed to the calculated before assigning to PC.
-
-
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
-
getDirectConversionOperationType
Straight-up conversion to anOperationType
.- Returns:
- may be null
-