* _sum.asm SUM subroutine
* called by exp2a.c
* Input: Array pointer
* Output: Return sum result in T0
.global _sum
_sum
mov *AR0+,AC0 ;AC0 = x[1]
add *AR0+,AC0 ;AC0 = x[1]+x[2]
mov AC0,T0
ret ;Return T0
.end
ERROR! at line 9: [E0002] Illegal mnemonic specified
mov *AR0+,AC0 ;AC0 = x[1]
"AssembleProgram.asm", ERROR! at line 10: [E0002] Illegal mnemonic specified
add *AR0+,AC0 ;AC0 = x[1]+x[2]
"AssembleProgram.asm", ERROR! at line 11: [E0002] Illegal mnemonic specified
mov AC0,T0
"AssembleProgram.asm", ERROR! at EOF: [E0300] Symbol mov has already been
defined
4 Assembly Errors, No Assembly Warnings
这都是什错误啊!是有空格的事吗 ?
------解决方案--------------------------------------------------------
确定编译器可以处理这种DSP汇编?