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.

6678 trap使用



硬件:6678

软件:ccs5.2

我想在程序中嵌入一条汇编指令__asm(" trap 15");

我的目的是这样的,我设置的定时器中断为15号中断,我想测试中断向量表和时钟中断是否成功,然后我就嵌入了上述的指令。但是编译的时候出错

      Invalid mnemonic specification
        TRAP 15

1 Assembly Error, No Assembly Warnings

Errors in Source - Assembler Aborted


请问大家这是什么错误,正确方法是什么?还有6678的文档中哪个文档有讲到trap指令用法。