Aslw, Word arithmetic shift left 16 bits (dalu), Operation assembler syntax – Freescale Semiconductor StarCore SC140 User Manual
Page 369: Aslw d0,d1

ASLW
SC140 DSP Core Reference Manual
A-55
ASLW
Word Arithmetic Shift Left 16 Bits (DALU)
ASLW
Description
Status and Conditions that Affect Instruction
None.
Status and Conditions Changed by Instruction
Example
aslw d0,d1
Operation
Assembler Syntax
Da<<16
→ Dn
ASLW Da,Dn
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.
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.
Register/Memory Address
Before
After
D0
$FF A572 A572
L1:D1
$0:$00 0000 0000
$0:$72 A572 0000
SR
$00E0 0000
$00E0 0001
EMR
$0000 0004
0
0
15
16
31
32
39
C
1 1 1 1
1
C
1 1 1 1 1 0 1 0 0 1 0 1 0 1 1 1 0 0 1 0 1 0 1 0 0 1 0 1 0 1 1 1 0 0 1 0
0
1
6
3
2
3
9
0 0 0 0
0 0 0 0
1 0 1 0 0 1 0 1 0 1 1 1 0 0 1 0
0 1 1 1 0 0 1 0
0 0 0 0
0 0 0 0