assembly - Intel Stack Growth and Reference -
I have some questions related to Intel IA-32 stack. Specifically:
- When I put a value on the stack
push , the stack pointer is reduced by the value of the pushed value (
% esp - size ), and the value is stored on the old value of
% esp .
- If I write without
pop> , I need to increase the stack pointer (
% esp + size ).
- Rather than adding the required size to the stack, it is my perception that when it happens, I want the value away to towards Instead of going from the indicator address.
- For this reason, someone else will pick up the poorly read data.
Is the logic given above me right? thank you in advanced.
- Wrong, new
has been written on% esp value.
- Due to the wrong, # 1 point: You can read your most recent value from
(% esp) . You need to add
% esp to access older items.
- This code is just allocating a block of memory from the stack as a local storage. The block is filled later.
- Not sure what you mean.
- Due to the wrong, # 1 point: You can read your most recent value from
- If I write without
Comments
Post a Comment