15
15 – 78
Syntax:
[ IF cond ]
SET
FLAG_OUT
[, …] ;
RESET
FL0
TOGGLE
FL1
FL2
Example:
IF MV SET FLAG_OUT, RESET FL1;
Description:
Evaluate the optional condition and if true, set to one,
reset to zero, or toggle the state of the specified flag output pin(s).
Otherwise perform a no-operation and continue with the next instruction.
Omitting the condition performs the operation unconditionally. Multiple
flags may be modified by including multiple clauses, separated by
commas, in a single instruction. This instruction does not directly alter the
flow of your program—it is provided to signal external devices.
(Note that the FO pin is specified by “FLAG_OUT” in the instruction
syntax.)
The following table shows which flag outputs are present on each
ADSP-21xx processor:
processor
flag pin(s)
ADSP-2101
FO
ADSP-2105
FO
ADSP-2115
FO
ADSP-2111
FO, FL0, FL1, FL2
ADSP-217x
FO, FL0, FL1, FL2
ADSP-218x
FO, FL0, FL1, FL2
ADSP-21msp5x
FO, FL0, FL1, FL2
Status Generated:
None affected.
Instruction Field:
Flag Out Mode Control Instruction Type 28:
23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 1 0 0 0 0 0 FO FO FO FO COND
FL2 FL1 FL0 FLAG_OUT
FO: Operation to perform
COND: Condition code
on flag output pin
PROGRAM FLOW
MODIFY FLAG OUT PIN