Drawing a stack frame for x86 assembly

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

    The diagram shows parameters below the return address, which is actually wrong.

    Assuming that the stack grows towards lower addresses, if there is need to put parameters on the stack, they reside at higher addresses compared to the return address.

提交回复
热议问题