ASLW

 

 

 

ASLW

Word Arithmetic Shift Left 16 Bits (DALU) ASLW

Operation

Assembler Syntax

Da<<16 → Dn

ASLW Da,Dn

Description

 

ASLW Da,Dn

 

Shifts the source register Da left by 16 bits and stores it in the destination register Dn. Bit 24 of the source register is copied into the C bit. Bits [23:0] of the source register are copied into bits [39:16] of the destination register. Bits [15:0] of the destination register are cleared.

C

39

32 31

16 15

0

0

Status and Conditions that Affect Instruction

None.

Status and Conditions Changed by Instruction

Register Address

Bit Name

Description

SR[0]

C

Bit Da[24] is stored in the carry bit.

EMR[2]

DOVF

Set if the result cannot be represented in 40 bits.

Ln

L

Clears the Ln bit in the destination register.

Example

aslw d0,d1

Register/Memory Address

D0

L1:D1

SR

EMR

33

92

Before

$FF A572 A572

$0:$00 0000 0000

$00E0 0000

1

6

After

$0:$72 A572 0000

$00E0 0001

$0000 0004

0

1 1 1 1 1 1 1 1 1 0 1 0 0 1 0 1 0 1 1 1 0 0 1 01 0 1 0 0 1 0 1 0 1 1 1 0 0 1 0

C

0 1 1 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 1 1 0 0 1 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

1

SC140 DSP Core Reference Manual

A-55

Page 369
Image 369
Freescale Semiconductor SC140 Word Arithmetic Shift Left 16 Bits Dalu Aslw, Aslw d0,d1, Da16 → Dn, Aslw Da,Dn