home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / cpm / 1086 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  988 b 

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!WSMR-SIMTEL20.ARMY.MIL!WANCHO
  2. From: WANCHO@WSMR-SIMTEL20.ARMY.MIL ("Frank J. Wancho")
  3. Newsgroups: comp.os.cpm
  4. Subject: WANTED: Bit shift method for XMODEM packet check sum.
  5. Message-ID: <WANCHO.12809903647.BABYL@WSMR-SIMTEL20.ARMY.MIL>
  6. Date: 31 Aug 92 21:42:00 GMT
  7. Sender: usenet@ucbvax.BERKELEY.EDU
  8. Organization: The Internet
  9. Lines: 14
  10.  
  11. Dean,
  12.  
  13. If you *really* meant "checksum," there is no algorithm - you simply
  14. total the bytes of the packet and ignore the overflow, and the result
  15. is the (8-bit) checksum.  But, nobody should be using "xmodem"
  16. transfers with simple checksums; they should be using 16-bit CRCs at a
  17. minimum.  (Idealy, they should be using the zmodem protocol with
  18. 32-bit CRCs.)
  19.  
  20. If you want to see how checksums and both types of CRCs are handled in
  21. C, get a hold of a copy of the sources to RZ/SZ.  We have an anonymous
  22. ftpable set in PD8:<MISC.ZMODEM> here.
  23.  
  24. --Frank
  25.