Analog Devices ADSP-BF53x Blackfin Reference page 521

Table of Contents

Advertisement

Example
r5 = r2 + r1 ;
saturation */
r5 = r2 + r1(ns) ;
instruction length */
r5 = r2 + r1(s) ;
p5 = p3 + p0 ;
/* If r0.l = 0x7000 and r7.l = 0x2000, then . . . */
r4.l = r0.l + r7.l (ns) ;
because no saturation is enforced */
/* If r0.l = 0x7000 and r7.h = 0x2000, then . . . */
r4.l = r0.l + r7.h (s) ;
rated to the maximum positive value */
r0.l = r2.h + r4.l(ns) ;
r1.l = r3.h + r7.h(ns) ;
r4.h = r0.l + r7.l (ns) ;
r4.h = r0.l + r7.h (ns) ;
r0.h = r2.h + r4.l(s) ;
r1.h = r3.h + r7.h(ns) ;
Also See
Modify –
Increment,
Subtract
Special Applications
None
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
/* 16-bit instruction length add, no
/* same result as above, but 32-bit
/* saturate the result */
/* . . . produces r4.l = 0x9000,
/* . . . produces r4.l = 0x7FFF, satu-
/* saturate the result */
Add with
Shift,
Shift with
Arithmetic Operations
Add,
Vector Add /
15-9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adsp-bf56x blackfin

Table of Contents