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中使用汇编访问寄存器结构体问题。



在CCS下,使用的C文件中使用嵌入的汇编语言,在访问寄存器结构体时提示没有定义。如:

asm("   MOV     ACC,@_AdcResult.ADCRESULT0<<12");

编译时提示:

The following symbols are undefined:
2 Assembly Errors, No Assembly Warnings
ADCRESULT0

这是什么原因?怎么解决呢?

谢谢