Drawing a stack frame for x86 assembly

后端 未结 4 1646
旧巷少年郎
旧巷少年郎 2020-12-23 11:01

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

Here is what I got so far, but as you can see I am

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-23 11:27

    The distance between the current ebp (once it is capture from esp) and y is indeed 8 bytes in this case as you have the return eip and the value of the previous ebp on the stack. Your diagram is correct from what I can tell though the left hand addresses are more confusing :)

提交回复
热议问题