dsp56800 Freescale Semiconductor, Inc, dsp56800 Datasheet - Page 306

no-image

dsp56800

Manufacturer Part Number
dsp56800
Description
16-bit Digital Signal Controllers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
EOR
Operation:
S ⊕ D → D
S ⊕ D[31:16] → D[31:16]
where ⊕ denotes the logical exclusive OR operator
Description: Logically exclusive OR the source operand (S) with the destination operand (D) and store the result in
Usage:
Example:
Explanation of Example:
Condition Codes Affected:
Instruction Fields:
Timing:
Memory:
A-76
Operation
EOR
Before Execution
B2
Y1
5
the destination. This instruction is a 16-bit operation. If the destination is a 36-bit accumulator, the
source is exclusive ORed with 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).
This instruction is used for the logical exclusive OR of two registers. If it is desired to exclusive OR a
16-bit immediate value with a register or memory location, then the EORC instruction is appropriate.
EOR
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 Y1,B instruction logically exclusive ORs 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 accumu-
lator. The lower word of the accumulator (B0) and the extension bits (B2) are not affected by the op-
eration.
2 oscillator clock cycles
1 program word
LF
15
FF00
5555
14
B1
*
N
Z
V
13
*
Operands
— 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
DD,FDD
F1,DD
Y1,B
12
*
MR
11
*
Logical Exclusive OR
6789
B0
DSP56800 Family Manual
10
*
I1
9
C
2
Assembler Syntax:
EOR
EOR
; Exclusive_OR Y1 with B1
I0
8
W
1
SZ
7
After Execution
16-bit exclusive OR (XOR)
6
L
B2
Y1
5
5
E
S,D
S,D
U
4
CCR
AA55
FF00
B1
N
3
Z
Comments
2
V
1
Freescale Semiconductor
6789
C
0
B0
EOR

Related parts for dsp56800