|
MAC-PAC
Supplied
Operand
Codes
|
|
|
|
|
01
|
LT
|
Less than
|
(N,N)
|
L
|
(V1 - V2)
|
02
|
LE
|
Less than or equal
|
(N,N)
|
L
|
(V1 -= V2)
|
03
|
+
|
Addition
|
(N,N)
|
N
|
(V1 + V2)
|
04
|
-
|
Subtraction
|
(N,N)
|
N
|
(V1 - V2)
|
05
|
/
|
Division
|
(N,N)
|
N
|
(V1 / V2)
|
20
|
X
|
Multiplication
|
(N,N)
|
N
|
(V1 X V2)
|
06
|
GT
|
Greater than
|
(N,N)
|
L
|
(V1 + V2)
|
07
|
GE
|
Greater than or equal
|
(N,N)
|
L
|
(V1 += V2)
|
08
|
=
|
Equal to
|
(L,L)
(A,A)
(N,N)
|
L
L
L
|
(V1 = V2)
|
09
|
RD
|
Round Down
|
(N,N)
|
N
|
(V1 RD V2)
=(V1 / V2) X V2
Note: Integer Division
|
10
|
RU
|
Round up
|
(N,N)
|
N
|
(V1 RU V2)
=((V1/V2) X V2) =V2 if remainder is not zero.
Note: Integer Division
|
11
|
C1
|
Concatenate one character
|
(A,A)
(A,N)
|
A
A
|
(V1 C1 V2)V1 concatenated with the first alphanumeric character or the first non-decimal numeric character of V2.
|
12
|
C2
|
Concatenate two characters
|
(A,A)
(A,N)
|
A
A
|
(V1 C2 V2)V1 concatenated with the first two alphanumeric characters or the first two non-decimal numeric characters of V2.
|
13
|
C3
|
Concatenate three characters
|
(A,A)
(A,N)
|
A
A
|
(V1 C3 V2)V1 concatenated with the first three alphanumeric characters or the first three non-decimal numeric characters of V2.
|
14
|
C4
|
Concatenate four characters
|
(A,A)
(A,N)
|
A
A
|
(V1 C4 V2)V1 concatenated with the first four alphanumeric characters or the first four non-decimal numeric characters of V2.
|
15
|
EM
|
Element of Multiple Option table
|
(A,M)
(N,M)
|
L
|
(V1 EM V2)V1
= 0 where 0 is an operation in the multiple option table identified by V2.
|
16
|
EL
|
Element of Validation Table
|
(A,T)
|
L
|
(V1 EL V2)V1
= V(i) where V(i) is a variable within the validation table identified by V2.
|
17
|
&
|
Logical AND
|
(L,L)
|
L
|
(V1 & V2)True if V1 is true and V2 is true; otherwise false.
|
18
|
OR
|
Logical OR
|
(L,L)
|
L
|
(V1 OR V2)False if V1 is false and V2 is false, otherwise true.
|
19
|
IF
|
Logical IF
|
(A,L)
(N,L)
|
A
N
|
(V1 IF V2)
|
21
|
SA
|
Substring after
|
(A,N)
|
A
|
(V1 SA V2)Result will be all characters from V1 after and including the position identified by V2.
|
22
|
SB
|
Substring before
|
(A,N)
|
A
|
(V1 SB V2) Result will be all characters from V1 before and including the position identified by V2.
|