mov ax, bx vs. mov ax, [bx]

泪湿孤枕 提交于 2019-12-10 06:28:15

问题


What is the difference between the following two lines?

mov ax, bx
mov ax, [bx]

If bx contains the value 100h and the value at memory address 100h is 23, does the second one copy 23 to ax?

Also, what is the difference between the two following lines?

mov ax, 102h ; moves value of 102h into register ax
mov ax, [102h] ; Actual address is DS:0 + 102h

回答1:


Yes. The operand between the brackets is treated as an address and the value at that memory address if fetched.



来源:https://stackoverflow.com/questions/7291915/mov-ax-bx-vs-mov-ax-bx

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