gpt4 book ai didi

assembly - 汇编程序消息->错误: register number out of range

转载 作者:行者123 更新时间:2023-12-02 10:53:25 25 4
gpt4 key购买 nike

我正在尝试使用说明mula.dd.ll.ldinc m3 , a5 , m0 ,m1在我的汇编代码中
在具有xtensa LX6处理器的ESP32上。

它不会对其他指令产生错误,但是对于此特定指令,它会产生register number out of range

我正在使用a2-a4来接收汇编代码中的参数,并出于我的目的使用其他寄存器。 xtensa LX6处理器具有16个(AR,32位)通用寄存器

我也尝试减少传递给汇编函数并使用的参数数量
mula.dd.ll.ldinc m3 , a3 , m0 ,m1
但它提供了相同的错误

此语法与指令集中使用的语法完全相同。

mula.dd.ll.ldinc m3 , a3 , m0  ,m1 // the instruction multiplies m0 * m1 and adds it to the accumulator and then loads data at a3+4 into m3 ( +4 is because of auto increment )

最佳答案

This syntax is exactly as it is used in the Instruction set.

mula.dd.ll.ldinc m3 , a3 , m0  ,m1


不,不完全是。该操作码的ISA书籍中的内容如下:
MULA.DD.*.LDINC mw, as, mx, my

The mx operand can designate either MAC16 register m0 or m1.
The my operand can designate either MAC16 register m2 or m3.

因此您不能将m1作为最后一个寄存器参数。

关于assembly - 汇编程序消息->错误: register number out of range,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57489012/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com