|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Opcode>
de.cau.cs.kieler.krep.evalbench.program.klp.Opcode
public enum Opcode
Defines the opcode for each KLP instructions.
Enum Constant Summary | |
---|---|
ADD
addition. |
|
AND
boolean and. |
|
BOOL
move valued register to clock. |
|
CCMOV
move clock register to clock register. |
|
DIV
divide. |
|
DONE
Stop computation for this tick. |
|
EQ
equal. |
|
GE
greater or equal than. |
|
GT
greater than. |
|
IADD
immediate addition. |
|
IAND
boolean immediate and. |
|
ICMOV
move constant to clock register. |
|
IDIV
divide immediate. |
|
IEQ
equal. |
|
IGE
greater or equal than. |
|
IGT
greater than. |
|
ILE
less or equal than. |
|
ILT
less than. |
|
IMUL
Multiply immediate. |
|
INEQ
not equal. |
|
INPUT
declare input. |
|
INT
move clock to valued register. |
|
IOR
boolean immediate or. |
|
ISUB
subtract immediate. |
|
IVMOV
move constant to valued register. |
|
IXOR
boolean immediate xor. |
|
JF
jump when false. |
|
JMP
Unconditional jump. |
|
JNZ
jump when not zero. |
|
JT
jump when true. |
|
JZ
jump when zero. |
|
LE
less or equal than. |
|
LT
less than. |
|
MUL
Multiply. |
|
NEQ
not equal. |
|
OR
boolean or. |
|
OUTPUT
declare output. |
|
PRIO
set priority for a register. |
|
SETCLK
initialize valued register. |
|
SETPC
initialize clock register. |
|
SUB
subtract. |
|
VVMOV
move value register to valued register. |
|
XOR
boolean xor. |
Method Summary | |
---|---|
int |
getCode()
|
static Opcode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Opcode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Opcode SETCLK
public static final Opcode SETPC
public static final Opcode DONE
public static final Opcode INPUT
public static final Opcode OUTPUT
public static final Opcode PRIO
public static final Opcode ADD
public static final Opcode IADD
public static final Opcode SUB
public static final Opcode ISUB
public static final Opcode MUL
public static final Opcode IMUL
public static final Opcode DIV
public static final Opcode IDIV
public static final Opcode AND
public static final Opcode IAND
public static final Opcode OR
public static final Opcode IOR
public static final Opcode XOR
public static final Opcode IXOR
public static final Opcode LT
public static final Opcode LE
public static final Opcode EQ
public static final Opcode GE
public static final Opcode GT
public static final Opcode NEQ
public static final Opcode ILT
public static final Opcode ILE
public static final Opcode IEQ
public static final Opcode IGE
public static final Opcode IGT
public static final Opcode INEQ
public static final Opcode JMP
public static final Opcode JT
public static final Opcode JF
public static final Opcode JZ
public static final Opcode JNZ
public static final Opcode INT
public static final Opcode BOOL
public static final Opcode VVMOV
public static final Opcode IVMOV
public static final Opcode CCMOV
public static final Opcode ICMOV
Method Detail |
---|
public static Opcode[] values()
for (Opcode c : Opcode.values()) System.out.println(c);
public static Opcode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int getCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |