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.

[参考译文] AM6442:关于 PRU 汇编指令"LOOP"带有 QBxx 跳转

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1624130/am6442-regarding-the-pru-assembly-instruction-loop-with-a-qbxx-jump

器件型号: AM6442

我希望就 SPRUIJ2(PRU 汇编指令用户指南)- 硬件环路辅助(环路)做出一些说明。

如果从循环中退出 QBnn 是合法的、它将简化我的代码。 以下循环是否合法?

// create a loop that runs 10x, and after finishing jumps to endLoop
// however, if r2 != r3 -> JUMP to myRoutine (completely exits the loop?)
loop endLoop, 10
qbne myRoutine, r2, r3

endLoop:
    mov r4, r5 // placeholder action

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

    您好:

    对此处延迟的回复表示歉意。

    问得好。 让我检查一下、然后返回给您。 我的团队成员可能在一周的剩余时间内不在办公室、因此如果我没有收到星期一的回复、请 Ping 该线程。

    我明白了  

    此致、

    Nick

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

    附加说明:我看到了 PRU 汇编语言工具用户指南中介绍的一些条件汇编指令.loop/.break/.endloop、但这与问题无关。 汇编指令在编译时进行评估、而不是在运行时像循环命令那样进行评估。

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

    您好:

    看起来我们没有最终得到你,再次道歉。 我的团队成员尚未使用此特定用例、但文档似乎表明这是一个合法用例:

    我不确定这是否会刷新循环状态变量。

    此致、

    Nick