Skip to content

gmilArithmeticOpcodes

The arithmetic operators perform calculations, which may be actual arithmetic but might well be any other type of calculation like masking or concatenation or comparison. They typically have suboperations for the different binary types that may be involved. They are as follows:

OpcodeDescription
NEGNegate a value
NOTBoolean NOT
ADDAdd two values
CATConcatenate two strings
SUBSubtract two values
MULMultiply two values
DIVDivide two values
IDVInteger division of two values
MODModulus of two values
EXPRaise a value to an exponent
GTRTest for greater than
GTETest for greater than or equal
EQLTest for equal to
LTETest less than or equal to
LTHTest for less than
NEQTest for not equal to
IORInclusive or
ANDAnd
LIKLike
XORExclusive bitwise or