Source Code for Calculating CRCs
 MDFS::Info.Comp.Comms.CRCs/htm Search  

I got so fed up of the difficulty in tracking down real actual code to perform Cyclic Redundancy Check calculation, instead finding pages and pages of theoretical and mathematical discussions, so I put together pages of actual tested working code here. You can find information on the theory and background elsewhere.

 Used InCodeWidthPoly InitXorOut
CRC-32  PKZIP BBC BASIC, 6502, Z80, 6809, PDP-11, 80x86, ARM, C 32&EDB88320 &FFFFFFFF&FFFFFFFF
CRC-16  XMODEM
YMODEM
ZMODEM
Acorn RFS/CFS
BBC BASIC, 6502, Z80, 6809, PDP-11, 80x86, ARM, C 16&1021 &0000&0000
CRC-8      8&07 &00&00

See bbcmicro.net for a list of different CRCs.


Hosted by Force9 Internet - Authored by J.G.Harston
Last update: 23-Jul-2012