The comment about C using "unsigned int" is a good point.
 
You changed the line:
  if ((dataStore ^ accum) & 0x8000)
to:
  if ((dataStore or accum) and $8000) > 0 then
 
which isn't technically correct.  It would be correct if you were using an unsigned type but, if you are using a signed type then you should check for "<> 0" instead.
 
Regards,

Bevan
 

Reply via email to