Conditional Sequencing
Table 3-6. IF Condition and DO/UNTIL Termination
Mnemonics (Cont'd)
Condition From
Flag Input
Hardware Loop
1 ALU greater than (GT) is true if: [
2 ALU less than (LT) is true if: [
3 ALU greater equal (GE) is true if: [
4 ALU lesser or equal (LE) is true if: [
The two conditions that do not have complements are
counter expired/not expired) and
dition codes determines their interpretation. Programs should use
and
in conditional (
NOT LCE
and
to specify loop (
EVER
LCE
instruction executes a loop indefinitely, until an interrupt or reset
intervenes.
There are some restrictions on how programs may use conditions in
/
loops. For more information, see
DO
UNTIL
Loops" on page 3-27
3-20
Description
Flag0 asserted
Flag0 not asserted
Flag1 asserted
Flag1 not asserted
Flag2 asserted
Flag2 not asserted
Flag3 asserted
Flag3 not asserted
Loop counter expired (Do)
Loop counter not expired (IF)
Always false (Do)
Always true (IF)
and (
AF
and (
AF
AN
and (
AF
and (
AF
TRUE
) instructions. Programs should use
IF
/
DO
UNTIL
and
"Restrictions on Short Loops" on page
ADSP-2126x SHARC Processor Hardware Reference
True if...
FI0 = 1
FI0 = 0
FI1 = 1
FI1 = 0
FI2 = 1
FI2 = 0
FI3 = 1
FI3 = 0
CURLCNTR = 1
CURLCNTR 1
Always
Always
xor (
and
)) or (
AN
AV
ALUSAT
xor (
and
)) or (
AV
ALUSAT
xor (
and
)) or (
AN
AV
ALUSAT
xor (
and
AN
AV
ALUSAT
/
. The context of these con-
FOREVER
) termination. A
"Restrictions on Ending
Mnemonic
FLAG0_IN
NOT FLAG0_IN
FLAG1_IN
NOT FLAG1_IN
FLAG2_IN
NOT FLAG2_IN
FLAG3_IN
NOT FLAG3_IN
LCE
NOT ICE
FOREVER
TRUE
and
)] or
= 0
AF
AN
AZ
and
and
)] = 1
AF
AN
AZ
and
and
)] = 0
AF
AN
AZ
)) or (
and
)] or
AF
AN
AZ
(loop
LCE/NOT LCE
TRUE
FOR-
DO FOREVER
3-28.
= 1
Need help?
Do you have a question about the ADSP-21261 SHARC and is the answer not in the manual?
Questions and answers