LEA指令? [英] LEA instruction?

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

问题描述

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/1658294/x86-asm-whats-the-purpose-of-the-lea-instruction\">x86 ASM:?什么是LEA指令的目的

什么呢

lea    (%edx,%eax,1),%eax 

吗?

推荐答案

这是相当于EAX = EDX + EAX * 1。

It's the equivalent of "eax = edx + eax * 1".

一般情况下,LEA(地址前pression),寄存器的意思是计算的地址前pression和寄存器的值更改为其他指令使用地址前pressions为存储器访问,即MOV(地址前pression),寄存器装置计算的地址前pression并加载从所得地址到寄存器中的值。

Generally, lea (address expression), register means "compute the address expression and change the register value to that"; other instructions use address expressions for memory access, i.e. mov (address expression), register means "compute the address expression and load the value from the resulting address into the register".

这篇关于LEA指令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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