I\'m getting into assembly and I keep running into xor, for example:
xor ax, ax
Does it just clear the register\'s value?
xor ax,ax is used to set ax to 0.
Reason: typically xor instruction on any processor takes less bytes in assembling, than using movl 0,%ax
movl 0,%ax