Lsrw, Word bitwise shift right (dalu), Operation assembler syntax – Freescale Semiconductor StarCore SC140 User Manual
Page 545

LSRW
SC140 DSP Core Reference Manual
A-231
LSRW
Word Bitwise Shift Right (DALU)
LSRW
Description
Status and Conditions that Affect Instruction
None.
Status and Conditions Changed by Instruction
Example
lsrw d4,d2
Operation
Assembler Syntax
Da>>>16
→ Dn
LSRW Da,Dn
LSRW Da,Dn
Copies a source data register (Da) to the destination data register (Dn), logically shifted right 16 bits. Bit 15
of the source register is copied to the C bit. Bits [39:16] of the source register are copied to bits [23:0] of
the destination register. Bits [39:24] of the destination register are cleared.
Register Address
Bit Name
Description
SR[0]
C
Dn[15] is copied into the C bit.
Ln
L
Clears the Ln bit in the destination register.
Register/Memory Address
Before
After
D4
$FF 8765 4321
L2:D2
$0:$00 00FF 8765
SR
$00E4 0000
$00E4 0000
0
15
16
31
32
39
0
15
16
31
32
39
C
23
0
0
Da
Dn