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 confused at step 5, because I think my initial layout is wrong.
Can you tell me where I went wrong?
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With