Shift with Add
General Form
dest_pntr = adder_pntr + ( src_pntr << 1 )
dest_pntr = adder_pntr + ( src_pntr << 2 )
Syntax
Preg = Preg + ( Preg << 1 ) ;
(a) */
Preg = Preg + ( Preg << 2 ) ;
(a) */
Syntax Terminology
:
Preg
P5–0
Instruction Length
In the syntax, comment (a) identifies 16-bit instruction length.
Functional Description
The Shift with Add instruction combines a one- or two-place logical shift
left with an addition operation.
The instruction provides a shift-then-add method that supports a rudi-
mentary multiplier sequence useful for array pointer manipulation.
Flags Affected
None
Required Mode
User & Supervisor
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
Shift/Rotate Operations
/* adder_pntr + (src_pntr x 2)
/* adder_pntr + (src_pntr x 4)
14-5