Vai al contenuto

Standard Operators

Standard operators with their allowed modifiers and operands are as listed below.
OperatorModifiersSupported operand types: Acc_type, Op_typeSemantics
LDNAny, AnySets the accumulator equal to operand
STNAny, AnyStores the accumulator into operand location.
SBOOL, BOOLSets operand to TRUE if accumulator is TRUE.
RBOOL, BOOLSets operand to FALSE if accumulator is TRUE.
ANDN, (Any but REAL, Any butREALLogical or bitwise AND
ORN, (Any but REAL, Any butREALLogical or bitwise OR
XORN, (Any but REAL, Any butREALLogical or bitwise XOR
NOTAny but REALLogical or bitwise NOT
ADD(Any but BOOLAddition
SUB(Any but BOOLSubtraction
MUL(Any but BOOLMultiplication
DIV(Any but BOOLDivision
MOD(Any but BOOLModulo-division
GT(Any but BOOLComparison:
GE(Any but BOOLComparison: =
EQ(Any but BOOLComparison: =
NE(Any but BOOLComparison:
LE(Any but BOOLComparison:
LT(Any but BOOLComparison:
JMPC, NLabelJumps to label
CALC, NFB instance nameCalls function block
RETC, NReturns from called program, function, or function block.
)Evaluates deferred operation.