gpt4 book ai didi

汇编语言 move.l p, -(A3)

转载 作者:行者123 更新时间:2023-12-04 05:03:42 26 4
gpt4 key购买 nike

我正在学习汇编语言(m68000)。

我不明白以下语法

move.l p, -(A3)

这和下面的有什么区别?
move.l p, (A3)

最佳答案

它们是地址寄存器间接寻址模式的不同版本,但是,第一个具有预递减。

This addressing mode specifies the operand in memory, the address of which is specified by one of the address registers. Before the operand is used, the value in the address register is decremented according to the size of the operand.



Source

所以你的例子的不同之处在于存储在 A3 中的地址register 将减少 4 (操作数的大小,长字)之前 p被复制到其中。

关于汇编语言 move.l p, -(A3),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15801424/

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