Hello,
i use CCS v 3.1 and dsp6713
i have error that expected a declaration?????
this is my code:
.bss output,40 error here
.bss buffer,40
coeff .short 0x7e66
y1 .short 0x1209
MVKL .S1 coeff,A0
MVKH .S1 coeff,A0
LDH .D1 *A0,A2
MVK .S1 0x0001,A0 //setup circular buf AMR=0001_0001h
MVKLH .S1 0x0001,A0 //; setup circular buf AMR=0001_0001h
MVC .S2 A0,AMR
MVKL .S1 output,A3
MVKH .S1 output,A3
MVK .S1 0,A0
STH .D1 A0,*A3++
MVK .S1 buffer,A4
MVKH .S1 buffer,A4
MVK .S1 y1,A0
MVKH .S1 y1,A0
LDH .D1 *A0++,A1 //; load y1
NOP 4
STH .D1 A1,*A4++
STH .D1 A1,*A3++
LDH .D1 *A0,A1
NOP 4
STH .D1 A1,*A4++
main: MVK .S1 40,A1
loop: LDH .D1 *A4++,B1
LDH .D1 *A4,B2
NOP 3 //; <–– try optimizing here
MPYSP .M1 A2,B1,A0
SUB .L1 A1,1,A1
[A1] B .S1 loop
SSUB .L2X A0,B2,B0
STH .D1 B0,*A4
STH .D1 B0,*A3++
NOP 5