Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Two's compliment?

807569Jul 11 2006 — edited Jul 11 2006
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2006
Added on Jul 11 2006
1 comment
115 views