Freescale Semiconductor SC140 Word Bitwise Shift Right Dalu, Lsrw d4,d2, Lsrw Da,Dn

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 545
Image 545

LSRW

LSRW

Word Bitwise Shift Right (DALU)

LSRW

Operation

Assembler Syntax

Da>>>16 → Dn

LSRW Da,Dn

Description

 

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.

39

32 31

16 15

0

Da

39

32 31

23

16 15

0

 

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Dn

0

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Status and Conditions that Affect Instruction

None.

Status and Conditions Changed by Instruction

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.

Example

lsrw d4,d2

Register/Memory Address

D4

L2:D2

SR

Before

$FF 8765 4321

$00E4 0000

After

$0:$00 00FF 8765

$00E4 0000

SC140 DSP Core Reference Manual

A-231

Page 545
Image 545
Freescale Semiconductor SC140 specifications Word Bitwise Shift Right Dalu, Lsrw d4,d2, Lsrw Da,Dn