dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 584

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
OR.W
Operation:
S + D → D (no parallel move)
where + denotes the logical inclusive OR operator
Description: Perform a logical OR operation on the source operand (S) with the destination operand (D), and store
Usage:
Example:
Explanation of Example:
Condition Codes Affected:
Instruction Fields:
Instruction Opcodes:
Timing:
Memory:
A-240
OR.W
Operation
OR.W
Before Execution
EEE,EEE
B2
0
the result in the destination. This instruction is a 16-bit operation. If the destination is a 36-bit accumu-
lator, the OR operation is performed on the source 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 satu-
ration bit (SA).
This instruction is used for the logical OR of two registers. If it is desired to perform an OR operation
on a 16-bit immediate value with a register or memory location, the ORC instruction is appropriate.
OR.W
Prior to execution, the 16-bit Y1 register contains the value $FF00, and the 36-bit B accumulator con-
tains the value $0:1234:5678. The OR.W Y1,B instruction performs a logical OR on the 16-bit value
in the Y1 register with B1 and stores the 36-bit result in the B accumulator.
N
Z
V
1 oscillator clock cycle
1 program word
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
1234
P4
14
B1
Y1
Y1,B
13
P3
Operands
EEE,EEE
SR
P2
12
MR
Logical Inclusive OR Word
DSP56800E Core Reference Manual
P1
11
5678
8000
0300
B0
Y0
15
P0
0
10
1
; OR Y1 with B
I1
9
C
1
1
Assembler Syntax:
OR.W
I0
8
W
1
12
1
SZ
7
16-bit logical OR
11
1
After Execution
6
L
B2
0
0
5
E
E
S,D
U
4
CCR
E
FF34
FF00
8
B1
Y1
N
3
E
7
(no parallel move)
Comments
SR
a
2
Z
Freescale Semiconductor
a
V
1
a
4
5678
8000
0308
C
0
B0
Y0
1
3
OR.W
0
0
1
0

Related parts for dsp56800e