This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Viktor Gottschald, ARM7 CRC_CCITT assembly code

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

Parents
  • 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.

Reply
  • 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.

Children
No data