Drawing a stack frame for x86 assembly

后端 未结 4 1673
旧巷少年郎
旧巷少年郎 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:37

    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).

    alt text

提交回复
热议问题