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.

[参考译文] 编译器/LAUNCHXL-F2.8377万S:内联汇编

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/575759/compiler-launchxl-f28377s-inline-assembly

部件号:LAUNCHXL-F2.8377万S

工具/软件:TI C/C++编译器

您好,

我已经知道如何编程汇编器功能。 但是,是否有一种内联编程方法,例如:

浮点A = 10.55 ;

浮点b = 3.44 ;

_ASM (" MOVL R0H,_A?"

  " MOVL R1H,_b?"

  "添加... "

问题是当我使用内嵌汇编时,如何访问变量a和b?

非常感谢,

Jonas

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

    Jonas,

    遗憾的是,无法从这样的内联装配体中访问变量。  要执行此操作,您需要编写汇编函数。

    此致,

    Richard