I'm a assembly programmer that's been trying to calculate some CRC's for a device I'm trying to make work. The Mfgr of the device published a code snip for the CRC generator that I tried to make work in "codepad" http://codepad.org/d2u8bHLW
codepad is complaining about line5 (expected unqualified-id before 'for'.
This particular snip is trying to generate a CRC of the 3 bytes 0x02 0x00 0x0D and the correct CRC result should be 0x5D. Are there any kind souls out there who could help me understand how to make this work, and possibly point me in the direction of an on-line compiler that I could use to run this and generate the CRC's I need to make the commands to my instrument work?
Another data set 0x02 0x00 0x81 should result with CRC = 0x39
Thanks very much for any help for this old-school assembly guy..
Doug.