#include // copied from the png spec. // note: these will be saved in little endian format. void main(void) { unsigned long c; unsigned int n, k; puts("\tcase on"); puts(""); puts("root\tstart"); puts("\tend"); puts(""); puts("CRCTable\tData"); for (n = 0; n < 256; n++) { c = n; for (k = 0; k < 8; k++) { if (c & 1) { c = 0xedb88320L ^ (c >> 1); } else { c = c >> 1; } } printf("\tdc i4'$%08lx'\r", c); } puts("\tEnd"); }