What exactly is this lea supposed to do?

This question already has an answer here:

  • What's the purpose of the LEA instruction? 14 answers

  • lea 0x1(%eax), %ecx loads the register %ecx with %eax + 1 . The lea instruction is commonly used for arithmetic computations, thanks to the relatively sophisticated addressing modes of this instruction set.

    If you do not identify %eax as an address, this is likely what is happening here (as Oli says, we don't have enough context to tell).

    链接地址: http://www.djcxy.com/p/72382.html

    上一篇: 在不是地址/指针的值上使用LEA?

    下一篇: 这个lea应该做什么?