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.

编程时,两个冒号夹一变量什么意思?

Other Parts Discussed in Thread: CONTROLSUITE

本人新手。阅读HVPSFB套件程序时,对宏定义中两个冒号中间加一个变量感到疑惑,不知是C语言语法还是汇编语法。

如:

CNTL_2P2Z  .macro  n

MOVW  DP, # _CNTL_2P2Z_Ref:n:

……

.endm

其中下划线之后是C函数中定义的变量,

实际C函数中有CNTL_2P2Z_Ref1,CNTL_2P2Z_Ref2,

并没有CNTL_2P2Z_Ref,

这儿:n:是不是表示1或2?