Register Shifts - Analog Devices ADSP-BF53x Blackfin Reference

Table of Contents

Advertisement

The following example shows the input value downshifted.
R0 contains 0000 B6A3 ;
R1 = R0 >> 0x04 ;
results in
R1 contains 0000 0B6A ;
The following example shows the input value upshifted.
R0.L contains B6A3 ;
R1.H = R0.L << 0x04 ;
results in
R1.H contains 6A30 ;

Register Shifts

Register-based shifts use a register to hold the shift value. When a register
is used to hold the shift value (for
value is always found in the low half of a register (
bits of
are masked off and used as the shift value.
Rn.L
The following example shows the input value upshifted.
R0 contains 0000 B6A3 ;
R2.L contains 0004 ;
R1 = R0 ASHIFT by R2.L ;
results in
R1 contains 000B 6A30 ;
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
Computational Units
,
or
ASHIFT
LSHIFT
Rn.L
), then the shift
ROT
). The bottom six
2-51

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adsp-bf56x blackfin

Table of Contents