Download Script language manual (pdf, online) - MKT
Transcript
Dok-Nr. 85122
U_MINUS
NOT
Script Language for programmable CAN Terminals
0x1D
Inverts the sign of the element on top of the stack, for example
turns 1.234 into -1.234 .
0x1E
Turns the element on top of the stack into it's (one's) complement,
for example,
zero (boolean "FALSE") is turned into one (boolean "TRUE") and
vice versa .
..
JUMP
POPJZ
0x04, 0x05
0x06
absolute jump to the specified 'short' or 'long' address
POP and Jump if Zero (to the specified address)
Pops one (hopefully numeric) value off the stack, and jumps to the
specified address if the value is ZERO .
This instruction is frequently emitted by the compiler to produce
IF-THEN-ELSE,
and REPEAT-UNTIL constructs .
..
PROC
0x70 (?)
Begin of a user-defined procedure. The operand field contains
information about the procedure's stack frame, and the offset from
the function's start and end (so it can easily be skipped in
memory).
ENDPROC
0x71 (?)
End of a user-defined procedure. Cleans up the procedure's stack
frame, and returns to the caller.
CALL PROC
0x72 (?)
Calls (invokes) a user-defined procedure. Expects NO returnvalue.
FUNC
0x73 (?)
Begin of a user-defined procedure. Similar to a procedure, but a
function returns a value.
0x74 (?)
End of a user-defined function. Cleans up the function's stack
frame, and returns to the caller. Leaves the 'result' (special location
on the stack) unchanged.
0x75 (?)
Pops one value off the stack, copies it into the function's return
value, cleans up the function's stack frame, and returns to the
caller. After that (after returning), the caller will find the return
value on the 'new' top of the stack.
0x76 (?)
Calls (invokes) a user-defined function. In contrast to a procedurecall, expects a return value. After returning from callee to the
caller, the function's return value ("result") remains on the RPN
stack.
ENDFUNC
RETFUNC
CALL FUNC
..
..
..
..
© MKT / Dok.-Nr. 85122
Version 2.0
137 / 138