LEA instruction?
This question already has an answer here:
It's the equivalent of "eax = edx + eax * 1".
This particular case of lea
is an inefficient way to write add %edx, %eax
; only useful if you need to avoid modifying flags. But unlike add
, the output can be a register that isn't one of the inputs, and you can do more complex operations.
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, ie mov (address expression), register
means "compute the address expression and load the value from the resulting address into the register".
负载有效地址 - 它与C一元&
运算符等价。
上一篇: 循环指令的目的是什么(x86上的ROL,RCL)?
下一篇: LEA指令?