gpt4 book ai didi

assembly - ldr 中相同的源和目标寄存器

转载 作者:行者123 更新时间:2023-12-04 18:36:25 28 4
gpt4 key购买 nike

在ARM汇编中做ldr r0,[r0]合法吗?

最佳答案

如有疑问,请始终参阅 ARM 体系结构引用手册,该手册可在 arm.com 上找到。它说:

The destination register. The SP can be used. The PC can be used, provided the
instruction is either outside an IT block or the last instruction of an IT block.
If the PC is used, the instruction branches to the address (data) loaded to the PC.
In ARMv5T and above, this branch is an interworking branch, see Pseudocode details of
operations on ARM core registers on page A2-12.

并不是说目的寄存器不能和基址寄存器相同。即,答案是肯定的,它们可以相同。

关于assembly - ldr 中相同的源和目标寄存器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10189442/

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