asm stack related registers
i have a few questions about the stack registers esp and ebp.
what does this do? why are we moving the stack pointer into the stack base pointer?
Code:
mov ebp, esp
mov ebp, esp
push ebp mov ebp, esp ... ... mov esp, ebp ;; restore the original stack pointer pop ebp ;; restore the original base pointer
push ebp mov ebp, esp inc [ebp + 8h] ; variable 1? or 2?