If you push something into the stack multiple times (in a loop for example), does the stack keep growing or is the previous value replaced? For example, repeating push EDI 5 times. Would the stack have 5 EDIs?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The stack keeps growing, till some OS defined limit is reached. Then an exception is thrown. This limit is typically 256k or even megabytes on PC, to allow for recursion.
The stack doesn’t keep types, so since EDI is a 32-bit register, after 5 push edi’s it would contain 5 32-bit values, the same as the value in EDI