home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
filutl
/
crc113.arc
/
CRC.DOC
< prev
next >
Wrap
Text File
|
1990-01-03
|
3KB
|
78 lines
January 3, 1990
CRC-M2 v1.13 - Rewritten in C and assembly, this version has been optimized
for size and speed. Displays both 16- and 32-bit CRC values of files
selected from the command line. 16-bit CRC same as for ARC, LZH, LZS, PAK
and ZOO files. 32-bit CRC same as for ZIP. Wildcards and multiple
filespecs supported. Also includes the source and executable for a pure C
version of this program. Free program.
Contents:
=========
Purpose
Commands
Program background
Closing remarks
Purpose:
========
To display both 16- and 32-bit CRC values for selected files. Useful for
comparing contents of archives with external files.
Also useful for comparing files that are physically separated by distance
or incompatible hardware.
[I used this technique years ago to check the integrity of data files being
transferred from a CP/M machine to an MS-DOS one. The CP/M machine had
hard-sectored floppy drives, so the data was transferred via the respective
serial ports - which also caused the high bits to be stripped. I had to
write a program to encode binary data at the CP/M end and another one to
reconstruct the data at the MS-DOS end. CRC programs producing identical
values were used on both ends to compare files.]
This is a free program. You may use it or give it away as you wish.
Please include this DOC file if you do pass it along.
Commands:
=========
Just specify the names of the files to check after the program name.
Usage: CRC filespec [filespec ...]
'filespec' above may contain drive and/or path designations.
Examples: CRC *.exe *.com
CRC \autoexec.bat
CRC d:123*.* filename.ext *.e?e
Program background:
===================
The original version of this program was actually written as a by-product
of my search for an efficient and reliable CRC algorithm, implemented in a
high-level language. What prompted this search was my desire to write my
own file concatenation program, and CRC values would provide some measure
of assurance of the integrity of the files involved.
Although the initial versions of this program were written entirely in
Modula-2 as an exercise, versions beginning with 1.12 have been rewritten
in C. Version 1.13 have parts rewritten in assembly for speed and further
size reduction.
Closing remarks:
================
You may send your comments and suggestions to me at the addresses below:
By conventional mail:
---------------------
Raymond T. Kaya
P. O. Box 1436
Honolulu, HI 96806
By electronic mail:
-------------------
CompuServe: 71230,2500
GEnie: R.KAYA1