G
Guest
Hi,
Can someone explain the use of XOR?
Thanks
Can someone explain the use of XOR?
Thanks
Chris said:Hi,
Can someone explain the use of XOR?
Thanks
guy said:if you XOR mask with target
for each bit that is not set in the mask the corresponding bit in the target
is unchanged
for each bit that is set in the mask the corresponding bit in the target is
flipped
eg
01001101 XOR 00001010 = 01000111
Chris said:What's the mask?
:
Chris Dunaway said:The *mask* is the number that you are xor'ing against: (Per the
previous poster):
01001101 Original number
00001010 Xor (This is the mask)
--------------
01000111 Result
Notice that each bit in the result changed where the corresponding mask
bit was 1.