We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi
Viktor Gottschald wrote a code for CRC_CCITT which asks for an ascii input. However there are a few errors in the code.
Hey Viktor, if you read this, kindly send me an e-mail at vywake@yahoo.com, i'd like to discuss a few things about the CRC code when you have some free time.
Thanks
Vy
I don't really think "more wrong ones than right" is really correct, but it is true that there are broken implementations out there. Some solutions just switches the polynomial and forgets to augment the data.
Anyway - here is a reference to a "right" implementation.
www.joegeluso.com/.../ccitt.htm
You can write a little C program that implements the CCITT algorithm and calls it. Generate a list output - then you will see exactly how the C compiler generates code to call the function.
On the other hand - if you don't need a tabulated solution for extreme speed, and already have the knowledge to write in assembler - the posted link contains a good description of the algorithm (which is simple) so you can probably write it in assembly yourself too.