122
MANUAL DO USUÁRIO DC-2000 / PROGRAMA WINTASKGEN - Revisão 1.5
Line No.
Operator
Source Operand
Destination
Operand
1
CMP
TEMPVAR
10
2
JMP
GT
15
3
.
.
.
.
.
15
JMP
UC
25
19
.
.
25
.
.
.
30
END
will compare TEMPVAR with 10, if TEMPVAR is greater than 10,then execute the
macro at line number 15 then do an unconditional jump to line number 25, if not
execute macros from line numbers 3 to 14.
4.3.17 LEN
Syntax:
Operator
Source Operand
Destination Operand
LEN
OPERAND1
OPERAND2
Description:
Store the length of OPERAND1 in OPERAND2.
Operand Data Type:
OPERAND1
string variable , string constant
OPERAND2
numeric variable
Examples:
If TEMPVAR is defined as a variable; then
Line No.
Operator
Source Operand
Destination
Operand
1
LEN
TEST
TEMPVAR
will store the number of characters of "TEST" (4) in TEMPVAR.