understanding, the current function stack frame grows 4 bytes because stack pointer move forward 1 step.
So, the size of stack is 4 bytes larger than the original stack frame after instructions sub esp,4 finished running.
Then there are 3 push statements,
Isn’t the total size to be pushed onto the stack frame is 12 bytes? coz 3 integers there
how does the stack frame stores those 3 values when it grows only 4 bytes
Should sub esp,4 be changed to sub esp ,12 ?
the push instruction automatically decrements the stack pointer
Обсуждают сегодня