图纸x86汇编堆栈帧 [英] Drawing a stack frame for x86 assembly

查看:143
本文介绍了图纸x86汇编堆栈帧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我有点困惑绘制一个堆栈帧我组装code。
我有一种感觉,我开始了错了。

So, I am kind of confused about drawing a stack frame for my assembly code. I have a feeling I started out wrong.

下面是我走到这一步,但你可以看到我很困惑,在步骤5,因为我觉得我的初始布局是错误的。

Here is what I got so far, but as you can see I am confused at step 5, because I think my initial layout is wrong.


您可以告诉我在哪里出了错?

Can you tell me where I went wrong?

推荐答案

我想我会用一个图,它显示在堆栈的顶空部分(半)任意数量的开始,可能显示EBP和ESP到左边,用箭头以显示他们正在指向。我用实线箭头为点,并虚线为​​数据移动(现在回想起来,这可能是更好的扭转)。

I think I'd start with a diagram that showed some (semi-)arbitrary amount of empty space at the "top" of the stack, and probably display EBP and ESP off to the left, with arrows to show where they're pointing to. I've used solid arrows for "points to" and dashed for data movement (in retrospect, it might be better to reverse that).

这篇关于图纸x86汇编堆栈帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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