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.

C工程调用汇编子程序的问题



CCS5.2中建立了一个F28M35 ARM的C工程,源文件包含主函数main.c,loop.asm,startup_ccs.c,isr.asm,现在在main.c中调用汇编文件进入功能代码,而且一直在汇编里跑。这样建立工程是否可行?启动代码直接用提供的startup_ccs.c。

******main.c********

extern void loop(void);
void main(void) {
 loop();
}

******loop.asm********

 .global loop
 .global isr
 .include "inc/sfr.asm"
 .text
loop
 add r0,r0,r1
 bl isr
 nop
 nop
 b loop
 .end