Using Computational Status
2-24
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
Special Rounding Instructions
The ALU provides the ability to round the arithmetic results directly into
a data register with biased or unbiased rounding as described above. It also
provides the ability to round on different bit boundaries. The options
RND12
,
RND
, and
RND20
round at bit 12, bit 16, and bit 20, respectively,
regardless of the state of the
RND_MOD
bit in
ASTAT
.
For example:
R3.L = R4 (RND) ;
performs biased rounding at bit 16, depositing the result in a half word.
R3.L = R4 + R5 (RND12) ;
performs an addition of two 32-bit numbers, biased rounding at bit 12,
depositing the result in a half word.
R3.L = R4 + R5 (RND20) ;
performs an addition of two 32-bit numbers, biased rounding at bit 20,
depositing the result in a half word.
Using Computational Status
The multiplier, ALU, and shifter update the overflow and other status
flags in the processor’s Arithmetic Status (
ASTAT
) register. To use status
conditions from computations in program sequencing, use conditional
instructions to test the
CC
flag in the
ASTAT
register after the instruction
executes. This method permits monitoring each instruction’s outcome.
The
ASTAT
register is a 32-bit register, with some bits reserved. To ensure
compatibility with future implementations, writes to this register should
write back the values read from these reserved bits.
Summary of Contents for ADSP-BF53x Blackfin
Page 38: ...Conventions xxxviii ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 134: ...System Reset and Powerup 3 18 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 324: ...Instruction Overview 7 20 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 486: ...Instruction Overview 13 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 512: ...Instruction Overview 14 26 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 604: ...Instruction Overview 15 92 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 688: ...Instruction Overview 18 48 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 742: ...Instruction Overview 19 54 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 752: ...Examples 20 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 790: ...ADSP BF535 Flags A 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 800: ...Performance Monitor Registers B 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 1042: ...Index I 40 ADSP BF53x BF56x Blackfin Processor Programming Reference...