This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请问DSP2801用汇编语言如何编写复位和中断指令以及CDM文件?

我的程序在F2801上无法运行,找不到复位入口处,请问DSP2801用汇编语言如何编写复位和中断指令,以及CMD文件应如何分配复位地址,我已尝试过很多种方法,CMD文件也修改很多次,还是进入不了复位,请高人指点~

以下是我的一些程序和CMD文件:

ASM程序:

.include "F2801.h"
.globl _c_int0
;***********************************************************
 .sect "vectors"
RESVECT
                  b   _c_int0                ;reset interrupt handler
                  b   _c_int1                ;SEQ1INT(ADC)
                  b   phantom             ;假中断
                  b   _c_int3               ;PWM1_INT 
                  b   phantom
                  b   _c_int5              ;EQEP2_INT 
                  b   _c_int6             ;SPIRXINTA (SPI)

   .text 

_c_int0 


CMD文件:

-stack 40h
-heap 100

MEMORY
{

PAGE 0 : PROG : origin = 0x3F4000, length = 0x003FF4
PAGE 1 : VECS : origin = 0x3FFFC0, length = 0x00003E

PAGE 1 : M1RAM : origin = 0x000480, length = 0x000380
}

SECTIONS
{

   .text : > PROG, PAGE = 0
   .data : > PROG, PAGE = 0

   vectors : > VECS, PAGE = 1
  .bss : > M1RAM, PAGE = 1
  .stack : > M1RAM, PAGE = 1 /* 堆栈-40个单元 */
}