Motorola DSP56800 Manual page 369

16-bit digital signal processor
Table of Contents

Advertisement

NOT
Operation:
D → D
D[31:16] → D[31:16]
where the bar over the D (D) denotes the logical NOT operator
Description: Take the one's-complement of the destination operand (D) and store the result in the destination. This
instruction is a 16-bit operation. If the destination is a 36-bit accumulator, the one's-complement is
performed on bits 31–16 of the accumulator. The remaining bits of the destination accumulator are not
affected.
Example:
NOT A
Before Execution
5
1234
A2
A1
SR
0300
Explanation of Example:
Prior to execution, the 36-bit A accumulator contains the value $5:1234:5678. The NOT A instruction
takes the one's-complement of bits 31–16 of the A accumulator (A1) and stores the result back in the
A1 register. The remaining A accumulator bits are not affected.
Condition Codes Affected:
15
14
LF
*
See Section 3.6.5, "16-Bit Destinations," on page 3-35 for cases with X0, Y0, or Y1 as D.
See Section 3.6.2, "36-Bit Destinations—CC Bit Set," on page 3-34 and Section 3.6.4, "20-Bit Desti-
nations—CC Bit Set," on page 3-34 for the case when the CC bit is set.
Instruction Fields:
Operation
NOT
Timing:
2 oscillator clock cycles
Memory:
1 program word
Logical Complement
(no parallel move)
(no parallel move)
A,X:(R2)+
5678
A0
MR
13
12
11
10
9
*
*
*
*
I1
N
— Set if bit 31 of A or B result is set
Z
— Set if bits 31–16 of A or B result are zero
V
— Always cleared
Operands
C
FDD
2
Instruction Set Details
Assembler Syntax:
NOT
D
NOT
D
; save A1 and take the 1's complement of A1
After Execution
5
EDCB
A2
A1
SR
0300
CCR
8
7
6
5
4
I0 SZ
L
E
U
W
1
One's-complement (bit-wise negation)
NOT
(no parallel move)
(no parallel move)
5678
A0
3
2
1
0
N
Z
V
C
Comments
A-139

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents