Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
hi frds...i am new to this adsp2181....and i am unable to write assembly code for this matrix multiplication ....... plzzz help me.....
Please have a look below code. if it is working then kindly inform.
.section/dm data1;
.VAR mat1[4]={1,1,1,1};
.VAR mat2[4]={1,1,1,1};
.section /pm pm_da;
.VAR res[8];
.var buf[4];
.section/pm interrupts;
JUMP start;
.section/pm seg_code2;
start:
i4=res;
m4=1;
l4=0;
mstat=0x10;
ax0=0;
cntr=2;
do loop1 until ce;
i0=mat1;
m0=1;
l0=0;
i1=mat2;
m1=2;
l1=4;
m2=ax0;
modify(i1,m2);
cntr=4;
do loop2 until ce;
mx0=dm(i0,m0);
my0=dm(i1,m1);
mr=mx0*my0(ss);
loop2: pm(i4,m4)=mr0;
ar=ax0;
ar=ar+1;
loop1: ax0=ar;
i4=res;
m4=2;
l4=0;
i5=res+1;
m5=2;
l5=0;
i6=buf;
m6=1;
l6=0;
cntr=4;
do loop3 until ce;
ax0=pm(i4,m4);
ay0=pm(i5,m5);
ar=ax0+ay0;
loop3: pm(i6,m6)=ar;
idle;
----- Original Message -----
From: nirmala_devi2003
To: a...@yahoogroups.com
Sent: Thursday, November 01, 2007 8:47 PM
Subject: [adsp] matrix multiplication dsp code--ADSP2181
hi frds...i am new to this adsp2181....and i am unable to write
assembly code for this matrix multiplication .......
plzzz help me.....