15
15 – 27
Syntax:
[ IF cond ]
AR =
xop
AND
yop
;
AF
OR
constant
XOR
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 (ADSP-217x, ADSP-218x, ADSP-21msp58/59 only)
0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32767
–2, –3, –5, –9, –17, –33, –65, –129, –257, –513, –1025, –2049, –4097, –8193, –16385, –
32768
Example:
AR = AX0 XOR AY0;
IF FLAG_IN AR = MR0 AND 8192;
Description:
Test the optional condition and if true, then perform the
specified bitwise logical operation (logical AND, inclusive OR, or exclusive
OR). If the condition is not true then perform a no-operation. Omitting the
condition performs the logical operation unconditionally. The operands are
contained in the data registers or constant specified in the instruction.
The xop
AND/OR/XOR
constant operation 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
Always cleared.
AC
Always cleared.
ALU
AND, OR, XOR
(instruction continues on next page)