If we consider two registers ax and bx, how do we swap their contents in Intel IA-32 just by using push and pop? I’m not allowed to use xchg.
This is not question for a homework, I’m revising for an exam.
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.
You can either push once and use a
movinstruction, or push twice. First one goes like:If you want to push twice, it is (as answered by others):