
"fir.a", line 3: error: expected a declaration 找不出缺哪个 20
.global_fir,_init,_B,_outdata_firbsetfrctamov_B,xdpmov_B,cdpmovt0,ac0sub1,ac0movac0,m...
.global _fir,_init,_B,_outdata
_fir
bset frct
amov _B,xdp
mov _B,cdp
mov t0,ac0
sub 1,ac0
mov ac0,mmap(csr)
add ac0,ar0
mov 0,ac0
rpt csr
macmz *ar0-,*cdp+,ac0
mov hi(ac0),t0
ret
_init
mov mmap(t0),ac0
sub 1,ac0
mov ac0,ar7
rptz ac0,ar7
mov ac0,*ar0+
ret
_outdata
mov t1,ac0
sub 2,ac0
mov ac0,mmap(csr)
add ac0,ar0
rpt csr
delay *ar0-
mar *ar0+
mov t0,*ar0
ret
.end
build之后系统提示:
[fir.a] "C:\CCStudio_v3.3\C5500\cgtools\bin\cl55" -g -fr"C:/CCStudio_v3.3/MyProjects/fir/Debug" -d"_DEBUG" -@"Debug.lkf" "fir.a"
"fir.a", line 3: error: expected a declaration
At end of source: warning: parsing restarts here after previous syntax error
1 error detected in the compilation of "fir.a".
>> Compilation failure
Compile Complete,
1 Errors, 1 Warnings, 0 Remarks.
找不出缺少什么 菜鸟请教
lin3就是.global _fir,_init,_B,_outdata 展开
_fir
bset frct
amov _B,xdp
mov _B,cdp
mov t0,ac0
sub 1,ac0
mov ac0,mmap(csr)
add ac0,ar0
mov 0,ac0
rpt csr
macmz *ar0-,*cdp+,ac0
mov hi(ac0),t0
ret
_init
mov mmap(t0),ac0
sub 1,ac0
mov ac0,ar7
rptz ac0,ar7
mov ac0,*ar0+
ret
_outdata
mov t1,ac0
sub 2,ac0
mov ac0,mmap(csr)
add ac0,ar0
rpt csr
delay *ar0-
mar *ar0+
mov t0,*ar0
ret
.end
build之后系统提示:
[fir.a] "C:\CCStudio_v3.3\C5500\cgtools\bin\cl55" -g -fr"C:/CCStudio_v3.3/MyProjects/fir/Debug" -d"_DEBUG" -@"Debug.lkf" "fir.a"
"fir.a", line 3: error: expected a declaration
At end of source: warning: parsing restarts here after previous syntax error
1 error detected in the compilation of "fir.a".
>> Compilation failure
Compile Complete,
1 Errors, 1 Warnings, 0 Remarks.
找不出缺少什么 菜鸟请教
lin3就是.global _fir,_init,_B,_outdata 展开
2个回答
展开全部
.global _fir,_init,_B,_outdata这一行是要空两到三格的,不能和下面对齐,否则的话ccs是识别不出来的。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询