What is the purpose of XORing a register with itself?
Asked 07 September, 2021
Viewed 2.3K times
  • 51
Votes
012B1002  in          al,dx 
012B1003  push        ecx  
    int i = 5;
012B1004  mov         dword ptr [i],5 
    return 0;
012B100B  xor         eax,eax 

Also, what does it mean to do in al, dx?

8 Answer