当前位置: 代码迷 >> 汇编语言 >> 请教lea命令的具体作用
  详细解决方案

请教lea命令的具体作用

热度:2070   发布时间:2013-02-26 00:00:00.0
请问lea命令的具体作用
我看了一下解释   说的是把实际地址放到寄存器中

那么下面这两句分别是什么意思呢

lea                           ebx,   [esi]

lea             0xfffffff8(%ebp),%eax


------解决方案--------------------------------------------------------
1. ebx = esi
2. eax = ebp - 8

LEA本质上就是一个特殊的乘加运算指令
------解决方案--------------------------------------------------------
LEA - Load Effective Address
Usage: LEA dest,src
Modifies flags: None
Transfers offset address of "src " to the destination register.
Clocks Size
Operands 808x 286 386 486 Bytes
reg,mem 2+EA 3 2 1 2-4
- the MOV instruction can often save clock cycles when used in

place of LEA on 8088 processors

8D / r LEA r16,m Store effective address for m in register r16
8D / r LEA r32,m Store effective address for m in register r32
------解决方案--------------------------------------------------------
说反了
是ebp -8 = eax
  相关解决方案