mov ax, bx 与 mov ax, [bx]
下面两行有什么区别?
mov ax, bx
mov ax, [bx]
如果 bx 包含值 100h,并且内存地址 100h 处的值是 23,那么第二个是否将 23 复制到 ax?
另外,下面两行有什么区别?
mov ax, 102h ; moves value of 102h into register ax
mov ax, [102h] ; Actual address is DS:0 + 102h
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。括号之间的操作数被视为地址以及该内存地址处的值(如果获取)。
Yes. The operand between the brackets is treated as an address and the value at that memory address if fetched.