15
15 – 32
operation (using any constant other than –1, 0, or 1) causes the ASTAT status
flags to be undefined.
The PASS
constant operation (using any constant other than –1, 0, or 1) is only
available on the ADSP-217x, ADSP-218x, and ADSP-21msp58/59 processors and
may not be used in multifunction instructions.
Status Generated:
ASTAT:
7
6
5
4
3
2
1
0
SS
MV AQ
AS
AC
AV
AN
AZ
–
–
–
–
0
0
*
*
AZ
Set if the result equals zero. Cleared otherwise.
AN
Set if the result is negative. Cleared otherwise.
AV, AC Always cleared.
Note: The PASS constant operation (using any constant other than –1, 0, or 1)
causes the ASTAT status flags to be undefined.
Instruction Format:
Conditional ALU/MAC Operation, Instruction Type 9:
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 1 0 0 Z AMF Yop Xop 0 0 0 0 COND
AMF specifies the ALU or MAC operation. In this case,
AMF = 10000 for PASS yop
AMF = 10011 for PASS xop
AMF = 10001 for PASS 1
AMF = 11000 for PASS –1
Note that PASS xop is a special case of xop + yop, with yop=0.
Note that PASS 1 is a special case of yop + 1, with yop=0.
Note that PASS –1 is a special case of yop – 1, with yop=0.
Z:
Destination register
Yop:
Y operand
Xop:
X operand
COND: condition
Conditional ALU/MAC operation, Instruction Type 9:
(PASS constant; constant
≠
0,1,–1)
(ADSP-217x, ADSP-218x, ADSP-21msp58/59 only)
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 1 0 0 Z AMF YY Xop CC BO COND
AMF specifies the ALU or MAC operation. In this case,
AMF = 10000 for PASS yop
(special case of yop, with yop=constant)
AMF = 10001 for PASS yop + 1
(special case of yop + 1, with yop=constant)
AMF = 11000 for PASS yop – 1
(special case of yop – 1, with yop=constant)
ALU
PASS / CLEAR