Alu, Mac & Shifter Instructions; Alu Group - Analog Devices adsp-2100 Manual

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

Advertisement

Instruction Set Reference
15.5
ALU, MAC & SHIFTER INSTRUCTIONS
This group of instructions performs computations. All of these
instructions can be executed conditionally except the ALU division
instructions and the Shifter SHIFT IMMEDIATE instructions.
15.5.1

ALU Group

Here is an example of one ALU instruction, Add/Add with Carry:
IF AC AR=AX0+AY0+C;
The (optional) conditional expression, IF AC, tests the ALU Carry bit
(AC); if there is a carry from the previous instruction, this instruction
executes, otherwise a NOP occurs and execution continues with the next
instruction. The algebraic expression AR=AX0+AY0+C means that the
ALU result register (AR) gets the value of the ALU X input and Y input
registers plus the value of the carry-in bit.
Table 15.3 gives a summary list of all ALU instructions. In this list,
condition stands for all the possible conditions that can be tested and xop
and yop stand for the registers that can be specified as input for the ALU.
The conditional clause is optional and is enclosed in square brackets to
show this. A complete list of the permissible xops and yops is given in the
reference page for each instruction. A complete list of conditions is given
in Table 15.9.
ALU Instructions
[IF condition]
AR
AF
[IF condition]
AR
AF
[IF condition]
AR
AF
=
xop
+ yop
+ C
+ yop + C
+ constant
+ constant + C
=
xop
– yop
– yop + C – 1
+ C – 1
– constant
– constant + C – 1
=
yop
– xop
– xop + C – 1
– xop + C – 1
– xop + constant
– xop + constant + C – 1
;
;
;
15
15 – 9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents