什么是LEA 0xY(%ESP),ESI%呢? [英] What does lea 0xY(%esp), %esi do?

查看:247
本文介绍了什么是LEA 0xY(%ESP),ESI%呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白这是什么code会做

I dont understand what this code will do

lea   0x13(%esp), %esi

%ESP 是一个堆栈指针,%ESI 是索引寄存器。

%esp is a stack pointer, %esi is index register.

时的0x13偏移?

推荐答案

我已经习惯了英特尔的语法,所以我相信这是发生了什么:

I'm used to the Intel syntax, so I believe this is what's happening:

lea esi, [esp+13h]

尤其是0x18000 - 这种操作的结果将是0x18013,因为你没有实际访问与 LEA

Say esp is 0x18000 - the result of this operation will be 0x18013, since you're not actually accessing any memory with lea.

同样,我只能与英特尔的语法的经验,所以我的答案可能是不正确的。希望这有助于你!

Again, I only have experience with the Intel syntax, so my answer may be incorrect. Hopefully this has helped you!

这篇关于什么是LEA 0xY(%ESP),ESI%呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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