EasyManuals Logo

Analog Devices adsp-2100 User Manual

Analog Devices adsp-2100
486 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #383 background imageLoading...
Page #383 background image
15
15 – 60
Syntax: SR = [SR OR] ASHIFT xop BY <exp> (HI) ;
(LO)
Permissible xops <exp>
SI MR0 Any constant between –128 and 127*
SR1 MR1
SR0 MR2
AR
Example: SR = SR OR ASHIFT SR0 BY 3 (LO); {do not use “+3”}
Description: Arithmetically shift the bits of the operand by the amount
and direction specified by the constant in the exponent field. Positive
constants cause a left shift (upshift) and negative constants cause a right
shift (downshift). A positive constant must be entered without a “+” sign.
The shift may be referenced to the upper half of the output field (HI
option) or to the lower half (LO option). The shift output may be logically
ORed with the present contents of the SR register by selecting the SR OR
option.
For ASHIFT with a positive shift constant the operand is shifted left; with
a negative shift constant the operand is shifted right. The 32-bit output
field is sign-extended to the left (the MSB of the input is replicated to the
left), and the output is zero-filled from the right. Bits shifted out of the
high order bit in the 32-bit destination field (SR
31
) are dropped. Bits shifted
out of the low order bit in the destination field (SR
0
) are dropped.
To shift a double precision number, the same shift constant is used for
both halves of the number. On the first cycle, the upper half of the number
is shifted using an ASHIFT with the HI option; on the following cycle, the
lower half is shifted using an LSHIFT with the LO and OR options. This
prevents sign bit extension of the lower word’s MSB.
* See Table 2.4 in Chapter 2.
Status Generated: None affected.
SHIFTER
ARITHMETIC SHIFT IMMEDIATE

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Analog Devices adsp-2100 and is the answer not in the manual?

Analog Devices adsp-2100 Specifications

General IconGeneral
BrandAnalog Devices
Modeladsp-2100
CategoryComputer Hardware
LanguageEnglish

Related product manuals