Not quite right,
The correct way to XOR 2 values is to convert each value straight to a binary value then bit for bit perform the XOR test....
Example 3351 = 1234 xor 2501
1234 decimal = 010011010010
2501 decimal = 100111000101
3351 decimal = 110100010111
Windows calculator (in scientific mode) is your friend...
