13.07.2015 Views

DSP56xxx C Cross-Compiler User's Guide - Tasking

DSP56xxx C Cross-Compiler User's Guide - Tasking

DSP56xxx C Cross-Compiler User's Guide - Tasking

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Language Implementation 3–93; 1 |extern int i, j, k;. . .; 10 | k += i * j;move x:Fk,a0move x:Fi,x0move x:Fj,y0asl amac x0,y0,aasr amove a0,x:Fk; get k into a0, this must; be a0 to do the MAC; get i into x0; get j into y0; prepare for mac on integer:; scaling; mac!; get result of mac: scaling; store k; 1 |extern _fract i,j,k;. . .; 10 | k += i * j;move x:Fk,amove x:Fi,x0move x:Fj,y0macr x0,y0,amove a,x:Fk; get k into accu a; get i into x0; get j into y0; mac!; store k_inline• • • • • • • •

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!