Mac Group - Analog Devices adsp-2100 Manual

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

Advertisement

15 Instruction Set Reference
[IF condition]
[IF condition]
[IF condition]
[IF condition]
[IF condition]
[IF condition]
[IF condition]
[IF condition]
DIVS yop, xop ;
DIVQ xop ;
NONE = <ALU> ;
Table 15.3 ALU Instructions
15.5.2
Here is an example of one of the MAC instructions, Multiply/Accumulate:
IF NOT MV MR=MR+MX0*MY0(UU);
The conditional expression, IF NOT MV, tests the MAC overflow bit. If the
condition is not true, a NOP is executed. The expression
MR=MR+MX0*MY0 is the multiply/accumulate operation: the multiplier
result register (MR) gets the value of itself plus the product of the X and Y
input registers selected. The modifier in parentheses (UU) treats the
operands as unsigned. There can be only one such modifier selected from
the available set. (SS) means both are signed, while (US) and (SU) mean
that either the first or second operand is signed; (RND) means to round
the (implicitly signed) result.
15 –10
AR
=
AF
AR
=
AF
AR
=
AF
AR
=
AF
AR
=
AF
AR
=
AF
AR
=
AF
AR
=
AF

MAC Group

xop
AND
yop
OR
constant
XOR
TSTBIT n OF xop
SETBIT n OF xop
CLRBIT n OF xop
TGLBIT n OF xop
PASS
xop
yop
constant
xop
;
yop
NOT
xop
;
yop
ABS
xop
;
yop
+ 1
;
yop
– 1
;
;
;
;

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents