ADSP-BF535 Blackfin Processor Hardware Reference
2-47
Computational Units
The following example shows the input value down-shifted.
R0 = 0x0000 B6A3 ;
R1 = R0 >> 0x04 ;
results in
R1 = 0x0000 0B6A ;
The following example shows the input value up-shifted.
R0.L = 0xB6A3 ;
R1.H = R0.L << 0x04 ;
results in
R1.H = 0x6A30 ;
Register Shifts
Register based shifts use a register to hold the shift value. When a register
is used to hold the shift value, for
ASHIFT
,
LSHIFT
or
ROT
, then the shift
value is always found in the low half of a register (
Rn.L
). The bottom 6
bits of
Rn.L
are masked off and used as the shift value.
The following example shows the input value up-shifted.
R0 = 0x0000 B6A3 ;
R2.L = 0x0004 ;
R1 = R0 ASHIFT by R2.L ;
results in
R1 = 0x000B 6A30 ;
The following example shows the input value rotated. Assume the Condi-
tion Code (
CC
) bit is set to 0. For more information about
CC
, see
“Condition Code Flag” on page 4-12
.
R0 = 0xABCD EF12 ;
R2.L = 0x0004 ;
R1 = R0 ROT by R2.L ;
Summary of Contents for ADSP-BF535 Blackfin
Page 80: ...Development Tools 1 26 ADSP BF535 Blackfin Processor Hardware Reference...
Page 312: ...Working With Memory 6 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 332: ...System Interfaces 7 20 ADSP BF535 Blackfin Processor Hardware Reference...
Page 360: ...Dynamic Power Management Controller 8 28 ADSP BF535 Blackfin Processor Hardware Reference...
Page 446: ...Beginning and Ending an SPI Transfer 10 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 522: ...Timing Examples 11 76 ADSP BF535 Blackfin Processor Hardware Reference...
Page 562: ...IrDA Support 12 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 608: ...PCI I O Issues 13 46 ADSP BF535 Blackfin Processor Hardware Reference...
Page 672: ...References 14 64 ADSP BF535 Blackfin Processor Hardware Reference...
Page 810: ...SDRAM Controller SDC 18 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 811: ...ADSP BF535 Blackfin Processor Hardware Reference 18 87 External Bus Interface Unit...
Page 812: ...SDRAM Controller SDC 18 88 ADSP BF535 Blackfin Processor Hardware Reference...
Page 860: ...DMA Bus Debug Registers 20 30 ADSP BF535 Blackfin Processor Hardware Reference...