15
15 – 31
BO, CC, and YY specify the constant (see Appendix A, Instruction Coding).
Syntax:
[ IF cond ]
AR =
PASS
xop ;
AF
yop
constant
Permissible xops
Permissible yops
Permissible conds (see Table 15.9)
AX0
MR2
AY0
EQ
LE
AC
AX1
MR1
AY1
NE
NEG
NOT AC
AR
MR0
AF
GT
POS
MV
SR1
GE
AV
NOT MV
SR0
LT
NOT AV
NOT CE
Permissible constants (all ADSP-21xx processors)
–1, 0, 1
Permissible constants (ADSP-217x, ADSP-218x, ADSP-21msp58/59 only)
2, 3, 4, 5, 7, 8, 9, 15, 16, 17, 31, 32, 33, 63, 64, 65, 127, 128, 129, 255, 256, 257,
511, 512, 513, 1023, 1024, 1025, 2047, 2048, 2049, 4095, 4096, 4097, 8191, 8192, 8193,
16383, 16384, 16385, 32766, 32767
–2, –3, –4, –5, –6, –8, –9, –10, –16, –17, –18, –32, –33, –34, –64, –65, –66,
–128, –129, –130, –256, –257, –258, –512, –513, –514, –1024, –1025, –1026,
–2048, –2049, –2050, –4096, –4097, –4098, –8192, –8193, –8194,
–16384, –16385, –16386, –32767, –32768
Examples:
IF GE AR = PASS AY0;
AR = PASS 0;
AR = PASS 8191; (ADSP-217x, ADSP-218x, ADSP-21msp58/59 only)
Description:
Test the optional condition and if true, pass the source operand
unmodified through the ALU block and store in the destination register. If the
condition is not true perform a no-operation. Omitting the condition performs the
PASS unconditionally. The source operand is contained in the data register or
constant specified in the instruction.
PASS 0 is one method of clearing AR. PASS 0 can also be combined with memory
reads and writes in a multifunction instruction to clear AR.
The PASS instruction performs the transfer to the AR or AF register and affects the
ASTAT status flags (for xop, yop, –1, 0, 1 only). This instruction is different from a
register move operation which does not affect any status flags. The PASS
constant
ALU
PASS / CLEAR
(instruction continues on next page)