TIP: Click on subject to list as thread! ANSI
echo: locsysop
to: Paul Edwards
from: Bob Lawrence
date: 1996-09-23 08:08:28
subject: Public Domain Pascal

BL> Oh, no! All the SWAG 16-bit CRC use a zero seed. 

 PE> Which appears to be the consensus for everything except the
 PE> CCITT one.

  In that case, I'll remove that one.

 BL> The idea is to get the bytes in the order they are sent by
 BL> comms (they are sent backwards) without having to process them.
 BL> Your 32-bit CRC gives the same answer as the 'zmodem' ones in
 BL> SWAG, so I assumed you had it right. In fact, they are still
 BL> backwards and need extra processing. 

 PE> My routines provide a crc32Byte1() etc routines.

  I'll have another look. I thought you did it as a second operation.

 BL> Anyway, my point is what does it matter if you are only dealing
 BL> with a string of 32 bits. They can call it anything they
 BL> like... right?

 PE> Well, on a signed-magnitude computer, the hardware
 PE> manufacturers may have provided a shift-right which preserves
 PE> the sign, so that -16 shifted 1 bit to the right becomes -8. It
 PE> may make a lot of sense.

  Whaaat? How does the machine know it's a signed integer? It's just
32-bits in a register. Are you telling me that computer hardware has a
list of ints, longints, char, words, arrays, and all that crap?

Regards,
Bob
___ Blue Wave/QWK v2.12
@EOT:

---
* Origin: Precision Nonsense, Sydney (3:711/934.12)
SEEN-BY: 711/934 712/610
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.