dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 597

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
ROR.W
Operation:
(see following figure)
:
Description: Logically shift 16 bits of the destination operand (D) 1 bit to the right, and store the result in the des-
Example:
Explanation of Example:
Condition Codes Affected:
Freescale Semiconductor
Before Execution
B2
0
tination. If the destination is a 36-bit accumulator, the result is stored in the MSP of the accumulator
(FF1 portion), and the remaining portions of the accumulator are not modified. The LSB of the desti-
nation (bit 16 for a 36-bit accumulator) prior to the execution of the instruction is shifted into C, and
the previous value of C is shifted into the MSB of the destination (bit 31 for a 36-bit accumulator). The
result is not affected by the state of the saturation bit (SA).
ROR.W
Prior to execution, the 36-bit B accumulator contains the value $0:C000:80AA. Execution of the
ROR.W B instruction shifts the 16-bit value in the B1 register 1 bit to the right, shifting bit 16 into C,
rotating C into bit 31, and storing the result back in the B1 register.
N
Z
V
C
LF
15
— Set if bit 31 of accumulator result or bit 15 of result for X0, Y0, or Y1 is set
— Set if bits 31–16 of accumulator result or all bits of result for X0, Y0, or Y1 are zero
— Always cleared
— Set if bit 16 of accumulator or bit 0 of X0, Y0, or Y1 was set prior to the execution of the
C000
P4
14
B1
instruction
B
13
P3
SR
C
P2
12
MR
P1
11
80AA
0301
Unch.
B0
Rotate Right Word
D2
P0
10
Instruction Set Details
;rotate B1 right 1 bit
I1
9
Assembler Syntax:
ROR.W
I0
8
D1
SZ
7
After Execution
6
L
B2
0
Unchanged
5
E
D
D0
U
4
CCR
E000
B1
N
3
(no parallel move)
SR
2
Z
V
1
80AA
0308
C
0
B0
ROR.W
A-253

Related parts for dsp56800e