dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 480

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
EOR.W
Operation:
S ⊕ D → D (no parallel move)
S ⊕ D[31:16] → D[31:16] (no parallel move)
where ⊕ denotes the logical exclusive OR operator
Description: Perform a logical exclusive OR operation on the source operand (S) with the destination operand (D),
Usage:
Example:
Explanation of Example:
Condition Codes Affected:
A-136
Before Execution
B2
5
and store the result in the destination. This instruction is a 16-bit operation. If the destination is a 36-bit
accumulator, the exclusive OR operation is performed on the source with bits 31–16 of the accumula-
tor. The remaining bits of the destination accumulator are not affected. The result is not affected by the
state of the saturation bit (SA).
This instruction is used for the logical exclusive OR of two registers. If an exclusive OR of a 16-bit
immediate value with a register or memory location is desired, the EORC instruction is appropriate.
EOR.W
Prior to execution, the 16-bit Y1 register contains the value $FF00, and the 36-bit B accumulator con-
tains the value $5:5555:6789. The EOR.W Y1,B instruction performs a logical exclusive OR opera-
tion on the 16-bit value in the Y1 register with bits 31–16 of the B accumulator (B1) and stores the
36-bit result in the B accumulator. The lower word of the accumulator (B0) and the extension byte (B2)
are not affected by the operation.
N
Z
V
LF
15
— Set if bit 31 of accumulator result or MSB of register result is set
— Set if bits 31–16 of accumulator result or all bits of register result are zero
— Always cleared
FF00
5555
P4
14
B1
Y1
Y1,B
13
P3
SR
P2
12
Logical Exclusive OR Word
MR
DSP56800E Core Reference Manual
P1
11
6789
8000
030F
B0
Y0
P0
10
;Exclusive OR of Y1 with B1
I1
9
EOR.W
Assembler Syntax:
EOR.W
I0
8
SZ
7
After Execution
6
L
B2
5
5
E
S,D
S,D
U
4
CCR
AA55
FF00
B1
Y1
N
3
SR
2
Z
Freescale Semiconductor
(no parallel move)
V
(no parallel move)
1
6789
8000
0309
C
0
B0
Y0
EOR.W

Related parts for dsp56800e