TI中文支持网
TI专业的中文技术问题搜集分享网站

CCS3.3编译汇编报错

用的是6713,C中加入了汇编,编译报错,增加了

asm("LB  0x8000")

编译后报错Illegal mnemonic  

求指点

Nancy Wang:

asm(" LB0x8000") 双引号后面要留出一个空格。

xyz549040622:

CCS DSP嵌入汇编的格式,首个双引号后面必须四个空格。

xyz549040622:

官方的文档是这么说的 The asm Statement www.ti.com The C/C++ compiler can embed assembly language instructions or directives directly into the assembly language output of the compiler. This capability is an extension to the C/C++ language—the asm statement. The asm (or __asm) statement provides access to hardware features that C/C++ cannot provide. The asm statement is syntactically like a call to a function named asm, with one string constant argument: asm(" assembler text ");

赞(0)
未经允许不得转载:TI中文支持网 » CCS3.3编译汇编报错
分享到: 更多 (0)