Instruction Reference
Nicky Nickell edited this page Mar 13, 2018
·
1 revision
Instructions with unspecified arguments are in the form of:
-
dest
- destination, an integer variable -
arg1
- argument 1, an integer constant or variable -
arg2
- argument 2, an integer constant or variable
dest = arg1 + arg2
dest = arg1 - arg2
dest = arg1 * arg2
dest = arg1 / arg2
dest = arg1 % arg2
-
dest
- destination, an integer variable -
arg
- argument, an integer constant or variable
dest = -arg
Instructions with unspecified arguments are in the form of:
-
dest
- destination, a float variable -
arg1
- argument 1, a float constant or variable -
arg2
- argument 2, a float constant or variable
dest = arg1 + arg2
dest = arg1 - arg2
dest = arg1 * arg2
dest = arg1 / arg2
-
dest
- destination, a float variable -
arg
- argument, a float constant or variable
dest = -arg
All arguments are in the form of:
-
dest
- destination, a bool variable -
arg1
- argument 1, a variable or a constant -
arg2
- argument 2, a variable or a constant
dest = arg1 == arg2
dest = arg1 < arg2
dest = arg1 <= arg2
dest = arg1 > arg2
dest = arg1 >= arg2
-
label
- label name, the jump target
-
label
- label name, the jump target -
cond
-
-
label
- label name, the jump target -
cond
-
-
value
- return value, the local variable to return from the function