dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 580

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
NOT.W
Operation:
D → D
where the bar over the D (D) denotes the logical NOT operator
Description: Compute the one’s-complement of the destination operand (D), and store the result in the destination.
Example:
Explanation of Example:
Condition Codes Affected:
Instruction Fields:
Instruction Opcodes:
Timing:
Memory:
A-236
NOT.W
Operation
NOT.W
Before Execution
A2
EEE
(no parallel move)
5
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. The result is not affected by the state of the saturation bit (SA).
NOT.W A
Prior to execution, the 36-bit A accumulator contains the value $5:FFFF:5678. The NOT.W instruction
computes the one’s-complement of bits 31–16 of the A accumulator (A1) and stores the result back in
the A1 register. The remaining portions of the A accumulator are not affected.
N
Z
V
1 oscillator clock cycle
1 program word
LF
15
— Set if MSB of result is set
— Set if bits 31–16 of accumulator result or all bits of the register result are zero
— Always cleared
FFFF
P4
14
A1
13
P3
Operands
SR
EEE
P2
12
MR
Logical Complement Word
DSP56800E Core Reference Manual
P1
11
5678
0300
A0
15
P0
0
10
1
I1
9
C
1
1
Assembler Syntax:
NOT.W
I0
8
W
1
12
1
;Compute one’s-complement of A1
SZ
7
One’s-complement (bit-wise negation)
11
0
After Execution
6
L
A2
5
0
5
E
E
D
U
4
CCR
E
8
0000
A1
N
3
E
7
(no parallel move)
Comments
SR
1
2
Z
Freescale Semiconductor
0
V
1
0
4
5678
0304
C
0
A0
NOT.W
0
3
0
1
1
0

Related parts for dsp56800e