
ASRW
SC140 DSP Core Reference Manual A-63
ASRW Word Arithmetic Shift Right 16 Bits (DALU) ASRW
Description
Status and Conditions that Affect Instruction
None.
Status and Conditions Changed by Instruction
Example
asrw d5,d0
Operation Assembler Syntax
Da>>16 → Dn
ASRW Da,Dn
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.
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.
Register/Memory Address Before After
D5
$80 1234 8765
L0:D0
$0:$00 0000 0000 $0:$ff ff80 1234
SR
$00E0 0000 $00E0 0001
01516313239 C
Comentários a estes Manuais