如何做LEA和几个指导工作? [英] how does LEA and several instruction work?

查看:147
本文介绍了如何做LEA和几个指导工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不完全了解的前两行的意义,和最后两行的差..

I dont fully understand the meaning of first two lines, and the difference of last two lines..

LDS SI,[BX]
LES DI,[BX]
LEA DI,5000h 
MOV DI,5000h

我觉得LEA负荷在DI 5000H的DI和MO​​V加载内容5000H。我说得对不对?

I think LEA loads 5000h in DI and MOV loads content of 5000h in DI. Am I right??

推荐答案

前两个负荷的32比特的内容指向 BX DS SI (或 ES )。

The first two load the contents of 32 bits pointed to by bx into ds and si (or es and di).

第二两个是相同的,因为该值是文字。但如果它们是:

The second two are the same because the values are literals. If, however they were:

lea di,[bx]
mov di,[bx]

那么你的预期是正确的:前者把地址 BX ,后者把16位指向 BX

then your expectation would be right: the former putting the address bx into di and the latter putting the 16 bits pointed to by bx into di.

有关双方的更多信息,请参见这个问题 / LDS 这个问题 MOV / LEA 了。

For more information on both, see this question for les/lds and this question for mov/lea.

这篇关于如何做LEA和几个指导工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆