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.

[参考译文] CCS/TMS320F28062:asm 指令不起作用/无效

Guru**** 2609285 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/685673/ccs-tms320f28062-asm-directives-are-not-working-invalid

器件型号:TMS320F28062

工具/软件:Code Composer Studio

您好!

尝试在.asm 文件中使用预定义符号。 "spru513p"表示我可以使用".if $defined (macroname)" 或".if $isdefed (" name ")"、但两者都不起作用。

我收到错误:无效助记符...

如何使用这些功能?

谢谢

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

    当我使用具有以下名称的 condional .if 指令时:

    myname .set 1.

    如果$defined (myName)

    ;...一些 ASM 代码...

    .endif

    此致、

    Richard

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我在 asm 中n`t 编程、因此我几乎不知道语法。 问题是、我在行的第一列中启动了条件、并且不得不移动一些空格。

    现在它正在工作:)