Analog Devices ADSP-BF53x Blackfin Reference page 536

Table of Contents

Advertisement

Instruction Overview
Flags Affected
This instruction affects flags as follows.
equals
AQ
is a 32-bit value and divisor is a 16-bit value.
• All other flags are unaffected.
The ADSP-BF535 processor has fewer
operate differently than subsequent Blackfin family products. For
more information on the ADSP-BF535 status flags, see
on page
Required Mode
User & Supervisor
Parallel Issue
This instruction cannot be issued in parallel with other instructions.
Example
/* Evaluate given a signed integer dividend and divisor */
p0 = 15 ;
/* Evaluate the quotient to 16 bits. */
r0 = 70 ;
/* Dividend, or numerator */
r1 = 5 ;
/* Divisor, or denominator */
r0 <<= 1 ;
sion */
divs (r0, r1) ;
and dividend for the DIVQ loop. */
loop .div_prim lc0=p0 ;
loop_begin .div_prim ;
divq (r0, r1) ;
loop_end .div_prim ;
15-24
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
Exclusive-OR
dividend_MSB
A-3.
/* Left shift dividend by 1 needed for integer divi-
/* Evaluate quotient MSB. Initialize AQ flag
/* Evaluate DIVQ p0=15 times. */
where dividend
divisor_MSB
flags and some flags
ASTAT
Table A-1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adsp-bf56x blackfin

Table of Contents