How can the following instructions make any sense?
xor eax,eax
mov eax,[eax]
When you XOR eax, you get zero most of the time, so can you dereference what is at address [eax] (in this case eax contains 0) and put it back into eax?
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.
Where did this code come from? And what OS is it intended to run on?
I see two possibilities:
This code is supposed to generate an intentional segmentation fault.
The code is intended to run on a system where there is a valid page at address 0, and it’s trying to access whatever is there.