
Instruction Set
File Instructions
3-28
File Instructions
Instruction
Description
File Arithmetic and Logic
FAL
Status Bits:
EN – Enable
DN – Done Bit
ER – Error Bit
When the input conditions go from false-to-true, the processor reads 8 elements of N14:0, and
subtracts 256 (a constant) from each element. This example shows the result being stored in
the eight elements beginning with N15:10. The control element R6:1 controls the operation. The
Mode determines whether the processor performs the expression on all elements in the files
(ALL) per program scan, one element in the files (INC) per scan, or a specific number of
elements (NUM) per scan.
The FAL instruction can perform these operations: add (+), subtract (–), multiply (*), divide (|),
convert from BCD (FRD), convert to BCD (TOD), square root (SQR), logical and (AND), logical or
(OR), logical not (NOT), exclusive or (XOR), negate (–), clear (0), move, and the new math
instructions (see the CPT list).
File Fill
FLL
When the input conditions are true, the processor copies the value in Source (N10:6) to the
elements in the Destination file (#N12:0). The FLL instruction only fills as many elements in the
destination as specified in the Length.
FILE ARITH/LOGICAL
Control
R6:1
Length
8
Position
0
Mode
ALL
Dest
#N15:10
Expression
#N14:0 – 256
FAL
FILL FILE
Source
N10:6
Destination
#N12:0
Length
5
FLL