Freescale Semiconductor SC140 specifications Asrw d5,d0, Asrw Da,Dn

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 377
Image 377

ASRW

ASRW Word Arithmetic Shift Right 16 Bits (DALU) ASRW

Operation

Assembler Syntax

Da>>16 → Dn

ASRW Da,Dn

Description

 

ASRW Da,Dn

 

Performs an arithmetic right shift of 16 bits on the source register Da and stores the result in the destination register Dn. It copies bit 39 of the source register to bits [39:24] of the destination register, bit 15 of the source register to the C bit, and bits [39:16] of the source register to bits [23:0] of the destination register.

 

 

39

32 31

16 15

0

 

 

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Status and Conditions that Affect Instruction

None.

Status and Conditions Changed by Instruction

Register Address

Bit Name

Description

SR[0]

C

Da[15] is stored in the carry bit.

Ln

L

Clears the Ln bit in the destination register.

Example

asrw d5,d0

Register/Memory Address

D5

L0:D0

SR

Before

$80 1234 8765

$0:$00 0000 0000

$00E0 0000

After

$0:$ff ff80 1234

$00E0 0001

SC140 DSP Core Reference Manual

A-63

Page 377
Image 377
Freescale Semiconductor SC140 specifications Asrw d5,d0, Asrw Da,Dn