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.

关于CLA汇编语言使用数组结构体问题



C2000 CLA ,使用汇编语言。

目标程序是一个多路电源,使用了一个结构体,如

struct {

float  PidError1;

float  PidError2;

……

}ABCD;

因为多路,每路要使用的结构都一样。这样就定义了个数组:

struct ABCD abcd[2];

在CLA的汇编语言中,使用这个结构:

MI32TOF32 MR0,@_abcd[0].PidError1

时出现错误,

Description Resource Path Location Type [E0003] Syntax error - Operand 3 CLA.asm /xxxx   line 54 C/C++ Problem

注,若不用数组形式时,程序能编译且正确运行。

谢谢大家。