Login
Remember
Register
Questions
Hot!
Categories
Ask a Question
Ask a Question
When a value is pushed onto the stack, what happens to the address stored in the stack pointer?
0
votes
asked
Sep 25, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
When a value is pushed onto the stack, what happens to the address stored in the stack pointer?
Facebook
Twitter
LinkedIn
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
1
Answer
0
votes
answered
Sep 25, 2022
by
iskralawrence
(
773k
points)
Best answer
The address stored in the stack pointer will decrease by the amount of bytes in the value. Then the value to be pushed will be written to that address.
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Welcome to the Answerine , a great place to find, read and share your favorite questions and answers.
Related questions
0
votes
1
answer
What happens to variable's current contents when a new value is stored there?
asked
Nov 19, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
0
votes
1
answer
What happens when a policy is surrendered for its cash value?
asked
Nov 7, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
0
votes
1
answer
When turning left from a one-way road onto another one-way road, start your turn from...
asked
Nov 17, 2022
in
General Knowledge
by
monikakim
(
557k
points)
0
votes
1
answer
When you turn left from a one-way street onto another one-way street, you should turn into...
asked
Nov 17, 2022
in
General Knowledge
by
monikakim
(
557k
points)
0
votes
1
answer
If %rdi contains the starting address of an long array Z, and %rsi contains the array index S, then how do I get the value at Z[S]?
asked
Sep 25, 2022
in
General Knowledge
by
iskralawrence
(
773k
points)
...