Yes you’re right. Thanks. (Slap myself about the head)

 


From: owner-[EMAIL PROTECTED] [mailto:owner-[EMAIL PROTECTED]] On Behalf Of Paul Heinz
Sent: Tuesday, 4 November 2003 12:45 p.m.
To: Multiple recipients of list delphi
Subject: RE: [DUG]: C Conversion

 

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