Generate Alu Status - Analog Devices adsp-2100 Manual

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

Advertisement

ALU
15

GENERATE ALU STATUS

(ADSP-217x, ADSP-218x, ADSP-21msp58/59 only)
Xop:
Syntax:
<ALU> may be any unconditional ALU operation except DIVS or DIVQ.*
Examples:
Description:
status flags, then discard the result value. This instruction allows the testing
of register values without disturbing the contents of the AR or AF registers.
* Note that the additional-constant ALU operations of the ADSP-217x,
ADSP-218x, ADSP-21msp58/59 processors are also not allowed:
ADD (xop + constant)
SUBTRACT X–Y (xop – constant)
SUBTRACT Y–X (–xop + constant)
AND, OR, XOR (xop
PASS (PASS constant, using any constant other than –1, 0, or 1)
TSTBIT, SETBIT, CLRBIT, TGLBIT.
Status Generated:
ASTAT:
AZ
AN
AV
AC
Instruction Format:
ALU/MAC operation with Data Register Move, Instruction Type 8:
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
AMF specifies the ALU or MAC operation (only ALU operations are allowed).
15 – 40
X operand
NONE = <ALU> ;
NONE = AX0 – AY0;
NONE = PASS SR0;
Perform the designated ALU operation, generate the ASTAT
constant)
7
6
5
SS MV AQ AS
Set if the result equals zero. Cleared otherwise.
Set if the result is negative. Cleared otherwise.
Set if an arithmetic overflow occurs. Cleared otherwise.
Set if a carry is generated. Cleared otherwise.
1
0
1
0
AMF
Yop:
Y operand
4
3
2
1
AC AV AN AZ
*
*
*
Yop
Xop
ALU codes only
0
*
1 0 1 0 1 0 1 0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents