.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.
请问这是什么原因?如何解决?