Why address register postincrement is (A0)+

对着背影说爱祢 提交于 2019-12-11 11:09:28

问题


Basically in the assembly language of 68000 to postincrement an address register you have to do:

(A0)+

Example

MOVE (A0)+,D0

This will move into D0 the value pointed by address of A0 and also will increment A0 by 1.

Considering that (A0) is the value pointed by A0 wasn't better if the postincrement syntax was:

(A0+)

? Or I am missing something?


回答1:


MOVE.L (A1)+,D0 ; increments A1 by 4, because it is long operation
                ; and 4 is size of long

I think that current postincrement syntax points at this feature, while (A1+) more suggests that A1 incremens by one always.

Look at: Indirect addressing with postincrement



来源:https://stackoverflow.com/questions/10766855/why-address-register-postincrement-is-a0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!