James asked:
 
 [snip]
 

      if ((dataStore ^ accum) & 0x8000) {

        accum = (accum << 1) ^ CRCDIV; 

 

[snip]

      if ((dataStore or accum) and $8000) > 0 then

      begin

        accum := (accum shl 1) or CRCDIV; 

Note that the ^ operator in C is Xor, not Or.

 

TTFN,

  Paul.

Reply via email to