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.

IER、IFR在DSP2801汇编编程中如何定义?

请问IER、IFR在DSP2801汇编编程中如何定义?我尝试过在头文件中使用以下语句定义:

    extern cregister volatile unsigned int IFR;

    extern cregister volatile unsigned int IER;

定义后在CCS3.3编译出现报警:"F2801.h", ERROR!   at line 6: [E0002] Invalid mnemonic specification

我的程序是用汇编编写的,无法使用该语句,但在不定义的情况下,IER/IFR无法使用,调试时通过CCS3.3【Memory】窗口看到IER/IFR寄存器改变不了数据,

请问各位高手,我应该如何定义?请帮帮忙!