View Single Post
Old Oct 22, 2010 | 10:37 AM
  #13  
ECU Monitor Enthusiast's Avatar
ECU Monitor Enthusiast
BANNED
iTrader: (1)
 
Joined: Jul 2003
Posts: 12,483
Likes: 0
From: Wiltshire
Default

Originally Posted by littleknocks
Infinity, or so it seems



The manual way of computing an XOR cksum would be to take each hex byte, convert it to binary & get the result of the XOR with the previous hex byte.
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...

Last edited by ECU Monitor Enthusiast; Oct 22, 2010 at 10:38 AM.
Reply