Pass/Clear - Analog Devices adsp-2100 Manual

Adsp-2100 family programmable single-chip microprocessors
Table of Contents

Advertisement

BO, CC, and YY specify the constant (see Appendix A, Instruction Coding).
Syntax:
[ IF cond ]
Permissible xops
AX0
MR2
AX1
MR1
AR
MR0
SR1
SR0
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;
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
AR
=
AF
Permissible yops
AY0
AY1
AF
(ADSP-217x, ADSP-218x, ADSP-21msp58/59 only)
(instruction continues on next page)
PASS / CLEAR
PASS
xop
yop
constant
Permissible conds (see Table 15.9)
EQ
LE
NE
NEG
GT
POS
GE
AV
LT
NOT AV
ALU
;
AC
NOT AC
MV
NOT MV
NOT CE
15
15 – 31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents