dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 593

no-image

dsp56800e

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

Related parts for dsp56800e