• 回复
  • 收藏
  • 点赞
  • 分享
  • 发新帖

dsp 新手的弱问题

/*exercise.asm文件如下:*/
.title "exercise.asm"
.mmregs
STACK .usect "STACK",10h
.bss x,4
.bss a,4
.bss y,1

.data
table: .word 1
.word 2
.word 3
.word 4
.word 8
.word 6
.word 4
.word 2

.text
start: SSBX FRCT
STM #0,SWWSR
STM #STACK+10h,SP
STM #a,AR1
RPT #7
MVPD table,*AR1+

CALL SUM
end: B end

SUM: STM #a,AR3
STM #x,AR4
RPTZ A,#3
MAC *AR3+,*AR4+,A
STL A,@y
RET
.end

/*lnk.cmd文件如下:*/

MEMORY {
PAGE 0:
PROG: origin=0x0100, len=0x0e00
PAGE 1:
DATA: origin=0x0f00, len=0x01f0
}


SECTIONS {
.text: > PROG  PAGE 0
.data:  > PROG  PAGE 0
.bss :  > DATA  PAGE 1
STACK:  > DATA  PAGE 1
}

编译如下:
----------------------------  exercise.pjt - Debug  ----------------------------
"d:\program\ccs5000\c5400\cgtools\bin\cl500" -g -q -fr"D:/program/ccs5000/myprojects/exercise/Debug" -d"_DEBUG" -@"Debug.lkf" "exercise.asm"


"d:\program\ccs5000\c5400\cgtools\bin\cl500" -@"Debug.lkf"

>> warning: entry point symbol _c_int00 undefined

Build Complete,
  0 Errors, 1 Warnings, 0 Remarks.

请问这是什么原因?如何解决?
全部回复(2)
正序查看
倒序查看
cowherd
LV.1
2
2006-08-28 20:35
是缺少复位和中断向量定义文件吧!
.title "vector.asm"
.ref   _c_int0,_nothing
.sect  ".vectors"
.reset       b     _c_int0
.int1        b     _nothing
.int2        b     _nothing
.int3        b     _nothing
.int4        b     _nothing
.int5        b     _nothing
.int6        b     _nothing

这个_c_int0应该是一个复位入口.
我也是刚学DSP,一起探讨.
0
回复
lg2lg
LV.1
3
2006-08-31 11:23
@cowherd
是缺少复位和中断向量定义文件吧!.title"vector.asm".ref  _c_int0,_nothing.sect  ".vectors".reset      b    _c_int0.int1        b    _nothing.int2        b    _nothing.int3        b    _nothing.int4        b    _nothing.int5        b    _nothing.int6        b    _nothing这个_c_int0应该是一个复位入口.我也是刚学DSP,一起探讨.
我看书上说vector.asm,用在多文件编译中
我所见到好几个用汇编写的例程都是没有vector.asm的
0
回复