Two's compliment?
807569Jul 11 2006 — edited Jul 11 2006I need to implement an algorithm to calculate the value as described by the following paragraph:
"the bytes comprising fields indicated by "$$" are summed and the low-order 8 bits are then negated (2's complement) to form the CheckSum."
see http://www.radio-active.net.au/web/gps/garmin.html
I have no idea how to do this. If anyone could suggest some working code it would be appreciated very much.
Thanks