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.

[参考译文] CCSTUDIO:C 和汇编代码混合

Guru**** 2824765 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1629906/ccstudio-intermixing-c-and-assembly-code

部件号: CCSTUDIO

我使用的是 TMS320x28335 处理器及其相关工具。

我正在尝试将堆栈中的值保存到“C"语言“语言变量中。 我使用内联汇编、如下所示:

 

无符号长整型 retAddr;

 

ASM(“POP @AH“);

ASM(“{POP @AL“);

asm(“MOVL @ RetAddr、ACC“);

 

累加器未按照我的预期存储在 RetAddr 中。 我在做什么?