home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
You can browse this item here: rzsz0525.tar
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| tar archive
| default
| |
99%
| file
| tar archive (V7), file Makefile, mode 644 , uid 360 , gid 31 , size 5570 , seconds 4434223030
| default
| |
98%
| file
| data
| default
| |
100%
| siegfried
| x-fmt/265 Tape Archive Format
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| Pre-POSIX tar archive
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4d 61 6b 65 66 69 6c 65 | 00 00 00 00 00 00 00 00 |Makefile|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 33 |.... 6|44 . 3|
|00000070| 36 30 20 00 20 20 20 20 | 33 31 20 00 20 20 20 20 |60 . |31 . |
|00000080| 20 20 20 35 35 37 30 20 | 20 34 34 33 34 32 32 33 | 5570 | 4434223|
|00000090| 30 33 30 20 20 20 35 35 | 34 33 00 20 00 00 00 00 |030 55|43. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 23 20 4d 61 6b 65 66 69 | 6c 65 20 66 6f 72 20 55 |# Makefi|le for U|
|00000210| 6e 69 78 2f 58 65 6e 69 | 78 20 72 7a 20 61 6e 64 |nix/Xeni|x rz and|
|00000220| 20 73 7a 20 70 72 6f 67 | 72 61 6d 73 0a 23 20 74 | sz prog|rams.# t|
|00000230| 68 65 20 6d 61 6b 65 66 | 69 6c 65 20 69 73 20 6e |he makef|ile is n|
|00000240| 6f 74 20 74 6f 6f 20 77 | 65 6c 6c 20 74 65 73 74 |ot too w|ell test|
|00000250| 65 64 20 79 65 74 0a 43 | 43 3d 63 63 0a 4f 46 4c |ed yet.C|C=cc.OFL|
|00000260| 41 47 3d 0a 0a 54 4c 42 | 46 49 4c 45 53 3d 20 7a |AG=..TLB|FILES= z|
|00000270| 6d 6f 64 65 6d 2e 68 20 | 7a 6d 2e 63 20 7a 6d 72 |modem.h |zm.c zmr|
|00000280| 2e 63 20 63 72 63 74 61 | 62 2e 63 20 73 7a 2e 63 |.c crcta|b.c sz.c|
|00000290| 20 72 7a 2e 63 20 5c 0a | 09 20 76 6d 6f 64 65 6d | rz.c \.|. vmodem|
|000002a0| 2e 68 20 76 76 6d 6f 64 | 65 6d 2e 63 20 76 72 7a |.h vvmod|em.c vrz|
|000002b0| 73 7a 2e 63 20 69 6e 69 | 74 2e 63 6f 6d 20 63 72 |sz.c ini|t.com cr|
|000002c0| 63 2e 63 0a 0a 41 52 43 | 46 49 4c 45 53 3d 20 24 |c.c..ARC|FILES= $|
|000002d0| 28 54 4c 42 46 49 4c 45 | 53 29 20 52 45 41 44 4d |(TLBFILE|S) READM|
|000002e0| 45 20 72 62 73 62 2e 63 | 20 67 7a 20 70 74 65 73 |E rbsb.c| gz ptes|
|000002f0| 74 2e 73 68 20 2a 2e 74 | 20 6d 69 6e 69 72 62 2e |t.sh *.t| minirb.|
|00000300| 63 20 67 65 6e 69 65 2e | 63 20 2a 2e 31 0a 0a 6e |c genie.|c *.1..n|
|00000310| 6f 74 68 69 6e 67 3a 0a | 09 40 65 63 68 6f 0a 09 |othing:.|.@echo..|
|00000320| 40 65 63 68 6f 20 22 50 | 6c 65 61 73 65 20 73 74 |@echo "P|lease st|
|00000330| 75 64 79 20 74 68 65 20 | 23 69 66 64 65 66 27 73 |udy the |#ifdef's|
|00000340| 20 69 6e 20 63 72 63 74 | 61 62 2e 63 2c 20 72 62 | in crct|ab.c, rb|
|00000350| 73 62 2e 63 2c 20 72 7a | 2e 63 20 61 6e 64 20 73 |sb.c, rz|.c and s|
|00000360| 7a 2e 63 2c 22 0a 09 40 | 65 63 68 6f 20 22 6d 61 |z.c,"..@|echo "ma|
|00000370| 6b 65 20 61 6e 79 20 6e | 65 63 65 73 73 61 72 79 |ke any n|ecessary|
|00000380| 20 68 61 63 6b 73 20 66 | 6f 72 20 6f 64 64 62 61 | hacks f|or oddba|
|00000390| 6c 6c 20 6f 72 20 6d 65 | 72 67 65 64 20 53 59 53 |ll or me|rged SYS|
|000003a0| 56 2f 42 53 44 20 73 79 | 73 74 65 6d 73 2c 22 0a |V/BSD sy|stems,".|
|000003b0| 09 40 65 63 68 6f 20 22 | 74 68 65 6e 20 74 79 70 |.@echo "|then typ|
|000003c0| 65 20 27 6d 61 6b 65 20 | 53 59 53 54 45 4d 27 20 |e 'make |SYSTEM' |
|000003d0| 77 68 65 72 65 20 53 59 | 53 54 45 4d 20 69 73 20 |where SY|STEM is |
|000003e0| 6f 6e 65 20 6f 66 3a 22 | 0a 09 40 65 63 68 6f 0a |one of:"|..@echo.|
|000003f0| 09 40 65 63 68 6f 20 22 | 09 73 79 73 76 72 33 09 |.@echo "|.sysvr3.|
|00000400| 53 59 53 54 45 4d 20 35 | 2e 33 20 55 6e 69 78 20 |SYSTEM 5|.3 Unix |
|00000410| 77 69 74 68 20 6d 6b 64 | 69 72 28 32 29 22 0a 09 |with mkd|ir(2)"..|
|00000420| 40 65 63 68 6f 20 22 09 | 73 79 73 76 09 53 59 53 |@echo ".|sysv.SYS|
|00000430| 54 45 4d 20 33 2f 35 20 | 55 6e 69 78 22 0a 09 40 |TEM 3/5 |Unix"..@|
|00000440| 65 63 68 6f 20 22 09 78 | 65 6e 69 78 09 58 65 6e |echo ".x|enix.Xen|
|00000450| 69 78 22 0a 09 40 65 63 | 68 6f 20 22 09 78 33 38 |ix"..@ec|ho ".x38|
|00000460| 36 09 33 38 36 20 58 65 | 6e 69 78 22 0a 09 40 65 |6.386 Xe|nix"..@e|
|00000470| 63 68 6f 20 22 09 62 73 | 64 09 42 65 72 6b 65 6c |cho ".bs|d.Berkel|
|00000480| 65 79 20 34 2e 78 20 42 | 53 44 2c 20 55 6c 74 72 |ey 4.x B|SD, Ultr|
|00000490| 69 78 2c 20 56 37 22 0a | 09 40 65 63 68 6f 0a 0a |ix, V7".|.@echo..|
|000004a0| 75 73 65 6e 65 74 3a 0a | 09 73 68 61 72 20 2d 66 |usenet:.|.shar -f|
|000004b0| 20 2f 74 6d 70 2f 72 7a | 73 7a 20 52 45 41 44 4d | /tmp/rz|sz READM|
|000004c0| 45 20 4d 61 6b 65 66 69 | 6c 65 20 7a 6d 6f 64 65 |E Makefi|le zmode|
|000004d0| 6d 2e 68 20 7a 6d 2e 63 | 20 73 7a 2e 63 20 72 7a |m.h zm.c| sz.c rz|
|000004e0| 2e 63 20 72 62 73 62 2e | 63 20 5c 0a 09 20 69 6e |.c rbsb.|c \.. in|
|000004f0| 69 74 2e 63 6f 6d 20 63 | 72 63 2e 63 20 76 6d 6f |it.com c|rc.c vmo|
|00000500| 64 65 6d 2e 68 20 76 76 | 6d 6f 64 65 6d 2e 63 20 |dem.h vv|modem.c |
|00000510| 76 72 7a 73 7a 2e 63 20 | 63 72 63 74 61 62 2e 63 |vrzsz.c |crctab.c|
|00000520| 20 6d 69 6e 69 72 62 2e | 63 20 5c 0a 09 20 7a 6d | minirb.|c \.. zm|
|00000530| 72 2e 63 20 2a 2e 31 20 | 67 7a 20 70 74 65 73 74 |r.c *.1 |gz ptest|
|00000540| 2e 73 68 20 2a 2e 74 0a | 0a 73 68 61 72 3a 0a 09 |.sh *.t.|.shar:..|
|00000550| 73 68 61 72 20 2d 66 20 | 2f 74 6d 70 2f 72 7a 73 |shar -f |/tmp/rzs|
|00000560| 7a 20 2d 6d 20 32 30 30 | 30 30 30 30 20 52 45 41 |z -m 200|0000 REA|
|00000570| 44 4d 45 20 4d 61 6b 65 | 66 69 6c 65 20 7a 6d 6f |DME Make|file zmo|
|00000580| 64 65 6d 2e 68 20 7a 6d | 2e 63 20 5c 0a 09 20 7a |dem.h zm|.c \.. z|
|00000590| 6d 72 2e 63 20 69 6e 69 | 74 2e 63 6f 6d 20 76 6d |mr.c ini|t.com vm|
|000005a0| 6f 64 65 6d 2e 68 20 76 | 76 6d 6f 64 65 6d 2e 63 |odem.h v|vmodem.c|
|000005b0| 20 76 72 7a 73 7a 2e 63 | 20 73 7a 2e 63 20 72 7a | vrzsz.c| sz.c rz|
|000005c0| 2e 63 20 63 72 63 74 61 | 62 2e 63 20 5c 0a 09 20 |.c crcta|b.c \.. |
|000005d0| 67 65 6e 69 65 2e 63 20 | 63 72 63 2e 63 20 72 62 |genie.c |crc.c rb|
|000005e0| 73 62 2e 63 20 6d 69 6e | 69 72 62 2e 63 20 2a 2e |sb.c min|irb.c *.|
|000005f0| 31 20 67 7a 20 70 74 65 | 73 74 2e 73 68 20 2a 2e |1 gz pte|st.sh *.|
|00000600| 74 0a 0a 75 6e 69 78 66 | 6f 72 75 6d 3a 20 73 68 |t..unixf|orum: sh|
|00000610| 61 72 0a 09 63 6f 6d 70 | 72 65 73 73 20 2d 62 31 |ar..comp|ress -b1|
|00000620| 32 20 2f 74 6d 70 2f 72 | 7a 73 7a 2e 73 68 0a 0a |2 /tmp/r|zsz.sh..|
|00000630| 74 6c 62 63 6d 64 3a 0a | 09 6d 6b 74 6c 62 2e 73 |tlbcmd:.|.mktlb.s|
|00000640| 68 20 52 45 41 44 4d 45 | 2e 20 24 28 54 4c 42 46 |h README|. $(TLBF|
|00000650| 49 4c 45 53 29 0a 0a 75 | 6e 69 78 3a 0a 09 75 6e |ILES)..u|nix:..un|
|00000660| 64 6f 73 20 24 28 41 52 | 43 46 49 4c 45 53 29 0a |dos $(AR|CFILES).|
|00000670| 0a 64 6f 73 3a 0a 09 74 | 6f 64 6f 73 20 24 28 41 |.dos:..t|odos $(A|
|00000680| 52 43 46 49 4c 45 53 29 | 0a 0a 61 72 63 3a 0a 09 |RCFILES)|..arc:..|
|00000690| 72 6d 20 2d 66 20 2f 74 | 6d 70 2f 72 7a 73 7a 2e |rm -f /t|mp/rzsz.|
|000006a0| 61 72 63 0a 09 61 72 63 | 20 61 71 20 2f 74 6d 70 |arc..arc| aq /tmp|
|000006b0| 2f 72 7a 73 7a 20 52 45 | 41 44 4d 45 20 4d 61 6b |/rzsz RE|ADME Mak|
|000006c0| 65 66 69 6c 65 20 7a 6d | 6f 64 65 6d 2e 68 20 7a |efile zm|odem.h z|
|000006d0| 6d 2e 63 20 73 7a 2e 63 | 20 72 7a 2e 63 20 5c 0a |m.c sz.c| rz.c \.|
|000006e0| 09 20 76 6d 6f 64 65 6d | 2e 68 20 76 76 6d 6f 64 |. vmodem|.h vvmod|
|000006f0| 65 6d 2e 63 20 76 72 7a | 73 7a 2e 63 20 63 72 63 |em.c vrz|sz.c crc|
|00000700| 74 61 62 2e 63 20 72 62 | 73 62 2e 63 20 5c 0a 09 |tab.c rb|sb.c \..|
|00000710| 20 7a 6d 72 2e 63 20 67 | 65 6e 69 65 2e 63 20 69 | zmr.c g|enie.c i|
|00000720| 6e 69 74 2e 63 6f 6d 20 | 63 72 63 2e 63 20 2a 2e |nit.com |crc.c *.|
|00000730| 31 20 67 7a 20 70 74 65 | 73 74 2e 73 68 20 2a 2e |1 gz pte|st.sh *.|
|00000740| 74 20 6d 69 6e 69 72 62 | 2e 63 0a 09 63 68 6d 6f |t minirb|.c..chmo|
|00000750| 64 20 6f 67 2d 77 20 2f | 74 6d 70 2f 72 7a 73 7a |d og-w /|tmp/rzsz|
|00000760| 2e 61 72 63 0a 09 6d 76 | 20 2f 74 6d 70 2f 72 7a |.arc..mv| /tmp/rz|
|00000770| 73 7a 2e 61 72 63 20 2f | 74 2f 79 61 6d 0a 0a 7a |sz.arc /|t/yam..z|
|00000780| 6f 6f 3a 0a 09 72 6d 20 | 2d 66 20 2f 74 6d 70 2f |oo:..rm |-f /tmp/|
|00000790| 72 7a 73 7a 2e 7a 6f 6f | 0a 09 7a 6f 6f 20 61 20 |rzsz.zoo|..zoo a |
|000007a0| 2f 74 6d 70 2f 72 7a 73 | 7a 20 52 45 41 44 4d 45 |/tmp/rzs|z README|
|000007b0| 20 4d 61 6b 65 66 69 6c | 65 20 7a 6d 6f 64 65 6d | Makefil|e zmodem|
|000007c0| 2e 68 20 7a 6d 2e 63 20 | 73 7a 2e 63 20 72 7a 2e |.h zm.c |sz.c rz.|
|000007d0| 63 20 5c 0a 09 20 76 6d | 6f 64 65 6d 2e 68 20 76 |c \.. vm|odem.h v|
|000007e0| 76 6d 6f 64 65 6d 2e 63 | 20 76 72 7a 73 7a 2e 63 |vmodem.c| vrzsz.c|
|000007f0| 20 63 72 63 74 61 62 2e | 63 20 72 62 73 62 2e 63 | crctab.|c rbsb.c|
|00000800| 20 2a 2e 31 20 5c 0a 09 | 20 7a 6d 72 2e 63 20 67 | *.1 \..| zmr.c g|
|00000810| 65 6e 69 65 2e 63 20 69 | 6e 69 74 2e 63 6f 6d 20 |enie.c i|nit.com |
|00000820| 63 72 63 2e 63 20 67 7a | 20 70 74 65 73 74 2e 73 |crc.c gz| ptest.s|
|00000830| 68 20 2a 2e 74 20 6d 69 | 6e 69 72 62 2e 63 0a 09 |h *.t mi|nirb.c..|
|00000840| 74 6f 75 63 68 20 2f 74 | 6d 70 2f 72 7a 73 7a 2e |touch /t|mp/rzsz.|
|00000850| 7a 6f 6f 0a 09 63 68 6d | 6f 64 20 6f 67 2d 77 20 |zoo..chm|od og-w |
|00000860| 2f 74 6d 70 2f 72 7a 73 | 7a 2e 7a 6f 6f 0a 09 6d |/tmp/rzs|z.zoo..m|
|00000870| 76 20 2f 74 6d 70 2f 72 | 7a 73 7a 2e 7a 6f 6f 20 |v /tmp/r|zsz.zoo |
|00000880| 2f 74 2f 79 61 6d 0a 0a | 74 61 72 3a 0a 09 74 61 |/t/yam..|tar:..ta|
|00000890| 72 20 63 76 66 20 2f 74 | 6d 70 2f 72 7a 73 7a 2e |r cvf /t|mp/rzsz.|
|000008a0| 74 61 72 20 52 45 41 44 | 4d 45 20 4d 61 6b 65 66 |tar READ|ME Makef|
|000008b0| 69 6c 65 20 7a 6d 6f 64 | 65 6d 2e 68 20 7a 6d 2e |ile zmod|em.h zm.|
|000008c0| 63 20 73 7a 2e 63 20 72 | 7a 2e 63 20 5c 0a 09 20 |c sz.c r|z.c \.. |
|000008d0| 76 6d 6f 64 65 6d 2e 68 | 20 76 76 6d 6f 64 65 6d |vmodem.h| vvmodem|
|000008e0| 2e 63 20 76 72 7a 73 7a | 2e 63 20 63 72 63 74 61 |.c vrzsz|.c crcta|
|000008f0| 62 2e 63 20 72 62 73 62 | 2e 63 20 5c 0a 09 20 7a |b.c rbsb|.c \.. z|
|00000900| 6d 72 2e 63 20 67 65 6e | 69 65 2e 63 20 69 6e 69 |mr.c gen|ie.c ini|
|00000910| 74 2e 63 6f 6d 20 63 72 | 63 2e 63 20 2a 2e 31 20 |t.com cr|c.c *.1 |
|00000920| 67 7a 20 70 74 65 73 74 | 2e 73 68 20 2a 2e 74 20 |gz ptest|.sh *.t |
|00000930| 6d 69 6e 69 72 62 2e 63 | 0a 0a 74 61 67 73 3a 0a |minirb.c|..tags:.|
|00000940| 09 63 74 61 67 73 20 73 | 7a 2e 63 20 72 7a 2e 63 |.ctags s|z.c rz.c|
|00000950| 20 7a 6d 2e 63 20 7a 6d | 72 2e 63 20 72 62 73 62 | zm.c zm|r.c rbsb|
|00000960| 2e 63 0a 0a 2e 50 52 45 | 43 49 4f 55 53 3a 72 7a |.c...PRE|CIOUS:rz|
|00000970| 20 73 7a 0a 0a 78 65 6e | 69 78 3a 0a 09 24 28 43 | sz..xen|ix:..$(C|
|00000980| 43 29 20 24 28 43 46 4c | 41 47 53 29 20 24 28 4f |C) $(CFL|AGS) $(O|
|00000990| 46 4c 41 47 29 20 2d 4d | 30 20 2d 4f 78 20 2d 4b |FLAG) -M|0 -Ox -K|
|000009a0| 20 2d 69 20 2d 44 54 58 | 42 53 49 5a 45 3d 31 36 | -i -DTX|BSIZE=16|
|000009b0| 33 38 34 20 2d 44 4e 46 | 47 56 4d 49 4e 20 2d 44 |384 -DNF|GVMIN -D|
|000009c0| 52 45 41 44 43 48 45 43 | 4b 20 73 7a 2e 63 20 2d |READCHEC|K sz.c -|
|000009d0| 6c 78 20 2d 6f 20 73 7a | 0a 09 73 69 7a 65 20 73 |lx -o sz|..size s|
|000009e0| 7a 0a 09 2d 6c 6e 20 73 | 7a 20 73 62 0a 09 2d 6c |z..-ln s|z sb..-l|
|000009f0| 6e 20 73 7a 20 73 78 0a | 09 24 28 43 43 29 20 24 |n sz sx.|.$(CC) $|
|00000a00| 28 43 46 4c 41 47 53 29 | 20 24 28 4f 46 4c 41 47 |(CFLAGS)| $(OFLAG|
|00000a10| 29 20 2d 4d 30 20 2d 4f | 78 20 2d 4b 20 2d 69 20 |) -M0 -O|x -K -i |
|00000a20| 2d 44 4d 44 20 72 7a 2e | 63 20 2d 6f 20 72 7a 0a |-DMD rz.|c -o rz.|
|00000a30| 09 73 69 7a 65 20 72 7a | 0a 09 2d 6c 6e 20 72 7a |.size rz|..-ln rz|
|00000a40| 20 72 62 0a 09 2d 6c 6e | 20 72 7a 20 72 78 0a 0a | rb..-ln| rz rx..|
|00000a50| 78 33 38 36 3a 0a 09 24 | 28 43 43 29 20 24 28 43 |x386:..$|(CC) $(C|
|00000a60| 46 4c 41 47 53 29 20 24 | 28 4f 46 4c 41 47 29 20 |FLAGS) $|(OFLAG) |
|00000a70| 2d 4f 78 20 2d 44 4d 44 | 20 72 7a 2e 63 20 2d 6f |-Ox -DMD| rz.c -o|
|00000a80| 20 72 7a 0a 09 73 69 7a | 65 20 72 7a 0a 09 2d 6c | rz..siz|e rz..-l|
|00000a90| 6e 20 72 7a 20 72 62 0a | 09 2d 6c 6e 20 72 7a 20 |n rz rb.|.-ln rz |
|00000aa0| 72 78 0a 09 24 28 43 43 | 29 20 24 28 43 46 4c 41 |rx..$(CC|) $(CFLA|
|00000ab0| 47 53 29 20 24 28 4f 46 | 4c 41 47 29 20 2d 4f 78 |GS) $(OF|LAG) -Ox|
|00000ac0| 20 2d 44 54 58 42 53 49 | 5a 45 3d 33 32 37 36 38 | -DTXBSI|ZE=32768|
|00000ad0| 20 2d 44 4e 46 47 56 4d | 49 4e 20 2d 44 52 45 41 | -DNFGVM|IN -DREA|
|00000ae0| 44 43 48 45 43 4b 20 73 | 7a 2e 63 20 2d 6c 78 20 |DCHECK s|z.c -lx |
|00000af0| 2d 6f 20 73 7a 0a 09 73 | 69 7a 65 20 73 7a 0a 09 |-o sz..s|ize sz..|
|00000b00| 2d 6c 6e 20 73 7a 20 73 | 62 0a 09 2d 6c 6e 20 73 |-ln sz s|b..-ln s|
|00000b10| 7a 20 73 78 0a 0a 73 79 | 73 76 3a 0a 09 24 28 43 |z sx..sy|sv:..$(C|
|00000b20| 43 29 20 24 28 43 46 4c | 41 47 53 29 20 24 28 4f |C) $(CFL|AGS) $(O|
|00000b30| 46 4c 41 47 29 20 2d 44 | 4d 44 20 72 7a 2e 63 20 |FLAG) -D|MD rz.c |
|00000b40| 2d 6f 20 72 7a 0a 09 73 | 69 7a 65 20 72 7a 0a 09 |-o rz..s|ize rz..|
|00000b50| 2d 6c 6e 20 72 7a 20 72 | 62 0a 09 2d 6c 6e 20 72 |-ln rz r|b..-ln r|
|00000b60| 7a 20 72 78 0a 09 24 28 | 43 43 29 20 24 28 43 46 |z rx..$(|CC) $(CF|
|00000b70| 4c 41 47 53 29 20 24 28 | 4f 46 4c 41 47 29 20 2d |LAGS) $(|OFLAG) -|
|00000b80| 44 53 56 20 2d 44 54 58 | 42 53 49 5a 45 3d 33 32 |DSV -DTX|BSIZE=32|
|00000b90| 37 36 38 20 2d 44 4e 46 | 47 56 4d 49 4e 20 73 7a |768 -DNF|GVMIN sz|
|00000ba0| 2e 63 20 2d 6f 20 73 7a | 0a 09 73 69 7a 65 20 73 |.c -o sz|..size s|
|00000bb0| 7a 0a 09 2d 6c 6e 20 73 | 7a 20 73 62 0a 09 2d 6c |z..-ln s|z sb..-l|
|00000bc0| 6e 20 73 7a 20 73 78 0a | 0a 73 79 73 76 72 33 3a |n sz sx.|.sysvr3:|
|00000bd0| 0a 09 24 28 43 43 29 20 | 24 28 43 46 4c 41 47 53 |..$(CC) |$(CFLAGS|
|00000be0| 29 20 24 28 4f 46 4c 41 | 47 29 20 2d 44 4d 44 3d |) $(OFLA|G) -DMD=|
|00000bf0| 32 20 72 7a 2e 63 20 2d | 6f 20 72 7a 0a 09 73 69 |2 rz.c -|o rz..si|
|00000c00| 7a 65 20 72 7a 0a 09 2d | 6c 6e 20 72 7a 20 72 62 |ze rz..-|ln rz rb|
|00000c10| 0a 09 2d 6c 6e 20 72 7a | 20 72 78 0a 09 24 28 43 |..-ln rz| rx..$(C|
|00000c20| 43 29 20 24 28 43 46 4c | 41 47 53 29 20 24 28 4f |C) $(CFL|AGS) $(O|
|00000c30| 46 4c 41 47 29 20 2d 44 | 53 56 20 2d 44 54 58 42 |FLAG) -D|SV -DTXB|
|00000c40| 53 49 5a 45 3d 33 32 37 | 36 38 20 2d 44 4e 46 47 |SIZE=327|68 -DNFG|
|00000c50| 56 4d 49 4e 20 73 7a 2e | 63 20 2d 6f 20 73 7a 0a |VMIN sz.|c -o sz.|
|00000c60| 09 73 69 7a 65 20 73 7a | 0a 09 2d 6c 6e 20 73 7a |.size sz|..-ln sz|
|00000c70| 20 73 62 0a 09 2d 6c 6e | 20 73 7a 20 73 78 0a 0a | sb..-ln| sz sx..|
|00000c80| 62 73 64 3a 0a 09 24 28 | 43 43 29 20 24 28 43 46 |bsd:..$(|CC) $(CF|
|00000c90| 4c 41 47 53 29 20 24 28 | 4f 46 4c 41 47 29 20 2d |LAGS) $(|OFLAG) -|
|00000ca0| 44 4d 44 3d 32 20 2d 44 | 73 74 72 63 68 72 3d 69 |DMD=2 -D|strchr=i|
|00000cb0| 6e 64 65 78 20 2d 44 56 | 37 20 72 7a 2e 63 20 2d |ndex -DV|7 rz.c -|
|00000cc0| 6f 20 72 7a 0a 09 73 69 | 7a 65 20 72 7a 0a 09 2d |o rz..si|ze rz..-|
|00000cd0| 6c 6e 20 72 7a 20 72 62 | 0a 09 2d 6c 6e 20 72 7a |ln rz rb|..-ln rz|
|00000ce0| 20 72 78 0a 09 24 28 43 | 43 29 20 24 28 43 46 4c | rx..$(C|C) $(CFL|
|00000cf0| 41 47 53 29 20 24 28 4f | 46 4c 41 47 29 20 2d 44 |AGS) $(O|FLAG) -D|
|00000d00| 56 37 20 2d 44 54 58 42 | 53 49 5a 45 3d 33 32 37 |V7 -DTXB|SIZE=327|
|00000d10| 36 38 20 2d 44 4e 46 47 | 56 4d 49 4e 20 73 7a 2e |68 -DNFG|VMIN sz.|
|00000d20| 63 20 2d 6f 20 73 7a 0a | 09 73 69 7a 65 20 73 7a |c -o sz.|.size sz|
|00000d30| 0a 09 2d 6c 6e 20 73 7a | 20 73 62 0a 09 2d 6c 6e |..-ln sz| sb..-ln|
|00000d40| 20 73 7a 20 73 78 0a 0a | 73 7a 3a 20 6e 6f 74 68 | sz sx..|sz: noth|
|00000d50| 69 6e 67 0a 73 62 3a 20 | 6e 6f 74 68 69 6e 67 0a |ing.sb: |nothing.|
|00000d60| 72 7a 3a 20 6e 6f 74 68 | 69 6e 67 0a 72 62 3a 20 |rz: noth|ing.rb: |
|00000d70| 6e 6f 74 68 69 6e 67 0a | 00 00 00 00 00 00 00 00 |nothing.|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 52 45 41 44 4d 45 00 00 | 00 00 00 00 00 00 00 00 |README..|........|
|00000e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 33 |.... 6|44 . 3|
|00000e70| 36 30 20 00 20 20 20 20 | 33 31 20 00 20 20 20 20 |60 . |31 . |
|00000e80| 20 20 20 35 31 30 36 20 | 20 34 34 33 35 30 37 36 | 5106 | 4435076|
|00000e90| 35 31 32 20 20 20 34 37 | 37 32 00 20 00 00 00 00 |512 47|72. ....|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 4d 61 79 20 31 39 38 39 | 3a 20 43 6f 72 72 65 63 |May 1989|: Correc|
|00001010| 74 69 6f 6e 73 20 66 6f | 72 20 75 6e 64 65 66 69 |tions fo|r undefi|
|00001020| 6e 65 64 20 76 61 72 69 | 61 62 6c 65 20 61 6e 64 |ned vari|able and|
|00001030| 20 6d 75 6c 74 69 70 6c | 79 0a 64 65 66 69 6e 65 | multipl|y.define|
|00001040| 64 20 72 64 63 68 6b 28 | 29 20 6f 6e 20 73 6f 6d |d rdchk(|) on som|
|00001050| 65 20 73 79 73 74 65 6d | 73 2e 0a 0a 4e 65 77 20 |e system|s...New |
|00001060| 66 6f 72 20 41 70 72 69 | 6c 20 31 39 38 39 3a 20 |for Apri|l 1989: |
|00001070| 5a 4d 4f 44 45 4d 20 63 | 6f 6d 70 72 65 73 73 69 |ZMODEM c|ompressi|
|00001080| 6f 6e 20 61 6e 64 20 6f | 74 68 65 72 20 63 6f 6d |on and o|ther com|
|00001090| 70 61 74 69 62 6c 65 0a | 65 78 74 65 6e 73 69 6f |patible.|extensio|
|000010a0| 6e 73 20 68 61 76 65 20 | 62 65 65 6e 20 61 64 64 |ns have |been add|
|000010b0| 65 64 20 74 6f 20 74 68 | 65 20 72 7a 20 61 6e 64 |ed to th|e rz and|
|000010c0| 20 73 7a 20 70 72 6f 67 | 72 61 6d 73 2e 20 20 50 | sz prog|rams. P|
|000010d0| 6c 65 61 73 65 0a 72 65 | 61 64 20 74 68 65 20 63 |lease.re|ad the c|
|000010e0| 6f 6d 6d 65 6e 74 73 20 | 69 6e 20 74 68 65 20 72 |omments |in the r|
|000010f0| 7a 2e 63 20 61 6e 64 20 | 73 7a 2e 63 20 73 6f 75 |z.c and |sz.c sou|
|00001100| 72 63 65 20 63 6f 64 65 | 20 66 6f 72 0a 6c 69 63 |rce code| for.lic|
|00001110| 65 6e 73 69 6e 67 20 69 | 6e 66 6f 72 6d 61 74 69 |ensing i|nformati|
|00001120| 6f 6e 20 66 6f 72 20 63 | 6f 6d 6d 65 72 63 69 61 |on for c|ommercia|
|00001130| 6c 20 75 73 65 2e 0a 0a | 50 72 65 76 69 6f 75 73 |l use...|Previous|
|00001140| 20 76 65 72 73 69 6f 6e | 73 20 6f 66 20 72 7a 20 | version|s of rz |
|00001150| 61 6e 64 20 73 7a 20 28 | 41 70 72 69 6c 20 31 39 |and sz (|April 19|
|00001160| 38 38 29 20 72 65 6d 61 | 69 6e 20 50 75 62 6c 69 |88) rema|in Publi|
|00001170| 63 20 44 6f 6d 61 69 6e | 2e 0a 0a 4e 65 77 20 66 |c Domain|...New f|
|00001180| 6f 72 20 41 70 72 69 6c | 20 31 39 38 38 3a 20 56 |or April| 1988: V|
|00001190| 4d 53 20 43 20 66 6c 61 | 76 6f 72 73 20 6f 66 20 |MS C fla|vors of |
|000011a0| 72 7a 20 61 6e 64 20 73 | 7a 20 65 73 70 65 63 69 |rz and s|z especi|
|000011b0| 61 6c 6c 79 20 66 6f 72 | 0a 74 69 72 65 64 20 66 |ally for|.tired f|
|000011c0| 72 6f 67 20 73 74 6f 6d | 70 65 72 73 2e 20 20 54 |rog stom|pers. T|
|000011d0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 70 65 72 |he follo|wing per|
|000011e0| 66 6f 72 6d 61 6e 63 65 | 20 6c 6f 67 20 65 6e 74 |formance| log ent|
|000011f0| 72 69 65 73 0a 67 69 76 | 65 20 74 68 65 20 73 74 |ries.giv|e the st|
|00001200| 6f 72 79 21 0a 0a 20 32 | 34 30 30 20 5a 20 20 73 |ory!.. 2|400 Z s|
|00001210| 70 6c 61 74 2e 61 72 63 | 20 20 20 20 20 20 20 20 |plat.arc| |
|00001220| 20 33 39 36 38 20 20 32 | 32 30 20 20 20 31 38 20 | 3968 2|20 18 |
|00001230| 20 30 20 20 30 20 20 20 | 30 20 20 35 31 32 20 20 | 0 0 |0 512 |
|00001240| 33 30 20 28 72 7a 29 20 | 30 20 63 63 76 61 78 20 |30 (rz) |0 ccvax |
|00001250| 6f 66 66 0a 20 32 34 30 | 30 20 4b 20 20 73 70 6c |off. 240|0 K spl|
|00001260| 61 74 2e 61 72 63 20 20 | 20 20 20 20 20 20 20 33 |at.arc | 3|
|00001270| 39 36 38 20 20 31 31 30 | 20 20 20 33 36 20 20 30 |968 110| 36 0|
|00001280| 20 20 30 20 20 20 30 20 | 20 20 38 39 20 20 2d 31 | 0 0 | 89 -1|
|00001290| 20 67 65 74 20 20 2d 31 | 20 63 63 76 61 78 20 6f | get -1| ccvax o|
|000012a0| 66 66 0a 0a 54 68 65 20 | 63 6f 6e 74 65 6e 74 73 |ff..The |contents|
|000012b0| 20 6f 66 20 52 5a 53 5a | 2e 41 52 43 20 63 61 6e | of RZSZ|.ARC can|
|000012c0| 20 62 65 20 75 70 6c 6f | 61 64 65 64 20 74 6f 20 | be uplo|aded to |
|000012d0| 61 20 56 41 58 2f 58 4d | 53 20 73 79 73 74 65 6d |a VAX/XM|S system|
|000012e0| 0a 62 79 20 5a 43 4f 4d | 4d 20 6f 72 20 50 72 6f |.by ZCOM|M or Pro|
|000012f0| 66 65 73 73 69 6f 6e 61 | 6c 2d 59 41 4d 20 75 73 |fessiona|l-YAM us|
|00001300| 69 6e 67 20 74 68 65 20 | 73 75 70 70 6c 69 65 64 |ing the |supplied|
|00001310| 20 76 75 70 6c 2e 74 20 | 73 63 72 69 70 74 2e 0a | vupl.t |script..|
|00001320| 43 6f 6e 6e 65 63 74 20 | 74 6f 20 79 6f 75 72 20 |Connect |to your |
|00001330| 56 4d 53 20 73 79 73 74 | 65 6d 2c 20 73 65 6c 65 |VMS syst|em, sele|
|00001340| 63 74 20 61 6e 20 65 6d | 70 74 79 20 64 69 72 65 |ct an em|pty dire|
|00001350| 63 74 6f 72 79 2c 20 61 | 6e 64 0a 74 68 65 6e 20 |ctory, a|nd.then |
|00001360| 67 69 76 65 20 74 68 65 | 20 59 41 4d 2f 5a 43 4f |give the| YAM/ZCO|
|00001370| 4d 4d 20 63 6f 6d 6d 61 | 6e 64 3a 20 22 73 6f 75 |MM comma|nd: "sou|
|00001380| 72 63 65 20 76 75 70 6c | 2e 74 22 2e 20 20 54 68 |rce vupl|.t". Th|
|00001390| 69 73 20 77 69 6c 6c 0a | 61 74 74 65 6d 70 74 20 |is will.|attempt |
|000013a0| 74 6f 20 73 74 61 72 74 | 20 61 20 4b 65 72 6d 69 |to start| a Kermi|
|000013b0| 74 20 73 65 72 76 65 72 | 20 61 6e 73 20 75 70 6c |t server| ans upl|
|000013c0| 6f 61 64 20 74 68 65 20 | 66 69 6c 65 73 20 74 6f |oad the |files to|
|000013d0| 20 69 74 2e 0a 49 66 20 | 74 68 65 20 73 63 72 69 | it..If |the scri|
|000013e0| 70 74 20 63 61 6e 27 74 | 20 66 69 72 65 20 75 70 |pt can't| fire up|
|000013f0| 20 61 20 4b 65 72 6d 69 | 74 20 73 65 72 76 65 72 | a Kermi|t server|
|00001400| 2c 20 74 68 65 20 73 63 | 72 69 70 74 20 77 69 6c |, the sc|ript wil|
|00001410| 6c 0a 75 73 65 20 74 68 | 65 20 56 4d 53 20 44 43 |l.use th|e VMS DC|
|00001420| 4c 20 22 63 72 65 61 74 | 65 22 20 63 6f 6d 6d 61 |L "creat|e" comma|
|00001430| 6e 64 20 74 6f 20 75 70 | 6c 6f 61 64 20 74 68 65 |nd to up|load the|
|00001440| 20 66 69 6c 65 73 20 64 | 69 72 65 63 74 6c 79 2e | files d|irectly.|
|00001450| 0a 49 6e 20 74 68 65 20 | 6c 61 74 74 65 72 20 63 |.In the |latter c|
|00001460| 61 73 65 2c 20 75 73 65 | 20 61 20 63 6c 65 61 6e |ase, use| a clean|
|00001470| 20 6c 69 6e 65 20 66 6f | 72 20 62 65 73 74 20 72 | line fo|r best r|
|00001480| 65 73 75 6c 74 73 2e 0a | 43 6f 6d 70 69 6c 65 2f |esults..|Compile/|
|00001490| 4c 69 6e 6b 20 64 69 72 | 65 63 74 69 6f 6e 73 20 |Link dir|ections |
|000014a0| 66 6f 72 20 56 4d 53 20 | 43 20 61 72 65 20 69 6e |for VMS |C are in|
|000014b0| 20 74 68 65 20 63 6f 6d | 6d 65 6e 74 73 20 61 74 | the com|ments at|
|000014c0| 20 74 68 65 0a 62 65 67 | 69 6e 6e 69 6e 67 20 6f | the.beg|inning o|
|000014d0| 66 20 74 68 65 20 72 7a | 2e 63 20 61 6e 64 20 73 |f the rz|.c and s|
|000014e0| 7a 2e 63 20 66 69 6c 65 | 73 2e 0a 0a 54 68 65 20 |z.c file|s...The |
|000014f0| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 52 5a 53 5a |contents| of RZSZ|
|00001500| 2e 41 52 43 20 63 61 6e | 20 62 65 20 75 70 6c 6f |.ARC can| be uplo|
|00001510| 61 64 65 64 20 74 6f 20 | 61 20 55 6e 69 78 20 6f |aded to |a Unix o|
|00001520| 72 20 58 65 6e 69 78 0a | 73 79 73 74 65 6d 20 62 |r Xenix.|system b|
|00001530| 79 20 5a 43 4f 4d 4d 20 | 6f 72 20 50 72 6f 66 65 |y ZCOMM |or Profe|
|00001540| 73 73 69 6f 6e 61 6c 2d | 59 41 4d 20 75 73 69 6e |ssional-|YAM usin|
|00001550| 67 20 74 68 65 20 73 75 | 70 70 6c 69 65 64 20 7a |g the su|pplied z|
|00001560| 75 70 6c 2e 74 0a 73 63 | 72 69 70 74 2e 20 20 43 |upl.t.sc|ript. C|
|00001570| 6f 6e 6e 65 63 74 20 74 | 6f 20 79 6f 75 72 20 55 |onnect t|o your U|
|00001580| 6e 69 78 2f 58 65 6e 69 | 78 20 73 79 73 74 65 6d |nix/Xeni|x system|
|00001590| 2c 20 73 65 6c 65 63 74 | 20 61 6e 20 65 6d 70 74 |, select| an empt|
|000015a0| 79 0a 64 69 72 65 63 74 | 6f 72 79 2c 20 61 6e 64 |y.direct|ory, and|
|000015b0| 20 74 68 65 6e 20 67 69 | 76 65 20 74 68 65 20 59 | then gi|ve the Y|
|000015c0| 41 4d 2f 5a 43 4f 4d 4d | 20 63 6f 6d 6d 61 6e 64 |AM/ZCOMM| command|
|000015d0| 3a 20 22 73 6f 75 72 63 | 65 0a 7a 75 70 6c 2e 74 |: "sourc|e.zupl.t|
|000015e0| 22 2e 20 20 54 68 69 73 | 20 77 69 6c 6c 20 75 70 |". This| will up|
|000015f0| 6c 6f 61 64 20 6d 69 6e | 69 72 62 2e 63 2c 20 63 |load min|irb.c, c|
|00001600| 6f 6d 70 69 6c 65 20 69 | 74 2c 20 61 6e 64 20 74 |ompile i|t, and t|
|00001610| 68 65 6e 20 75 73 65 0a | 6d 69 6e 69 72 62 20 74 |hen use.|minirb t|
|00001620| 6f 20 75 70 6c 6f 61 64 | 20 74 68 65 20 72 7a 2f |o upload| the rz/|
|00001630| 73 7a 20 66 69 6c 65 73 | 2e 0a 0a 4f 6e 63 65 20 |sz files|...Once |
|00001640| 74 68 65 73 65 20 66 69 | 6c 65 73 20 61 72 65 20 |these fi|les are |
|00001650| 6f 6e 20 79 6f 75 72 20 | 55 6e 69 78 20 73 79 73 |on your |Unix sys|
|00001660| 74 65 6d 2c 20 79 6f 75 | 20 63 61 6e 20 74 79 70 |tem, you| can typ|
|00001670| 65 20 22 6d 61 6b 65 22 | 2e 0a 54 68 65 20 4d 61 |e "make"|..The Ma|
|00001680| 6b 65 66 69 6c 65 20 77 | 69 6c 6c 20 6c 69 73 74 |kefile w|ill list|
|00001690| 20 74 68 65 20 76 61 72 | 69 6f 75 73 20 73 79 73 | the var|ious sys|
|000016a0| 74 65 6d 73 20 69 74 20 | 6b 6e 6f 77 73 20 68 6f |tems it |knows ho|
|000016b0| 77 20 74 6f 0a 63 6f 6d | 70 69 6c 65 20 74 68 65 |w to.com|pile the|
|000016c0| 20 70 72 6f 67 72 61 6d | 73 20 66 6f 72 2c 20 61 | program|s for, a|
|000016d0| 6e 64 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 74 |nd the c|ommand t|
|000016e0| 6f 20 64 6f 20 73 6f 20 | 28 65 2e 67 2e 2c 0a 22 |o do so |(e.g.,."|
|000016f0| 6d 61 6b 65 20 62 73 64 | 22 29 2e 0a 0a 54 68 65 |make bsd|")...The|
|00001700| 20 4d 61 6b 65 66 69 6c | 65 20 69 73 20 73 65 6c | Makefil|e is sel|
|00001710| 66 20 65 78 70 6c 61 6e | 61 74 6f 72 79 3b 20 6a |f explan|atory; j|
|00001720| 75 73 74 20 73 61 79 20 | 22 6d 61 6b 65 22 2e 0a |ust say |"make"..|
|00001730| 0a 4e 61 74 75 72 61 6c | 6c 79 2c 20 72 7a 20 61 |.Natural|ly, rz a|
|00001740| 6e 64 20 73 7a 20 77 6f | 72 6b 20 62 65 73 74 20 |nd sz wo|rk best |
|00001750| 77 69 74 68 20 63 6f 6d | 6d 20 70 72 6f 67 72 61 |with com|m progra|
|00001760| 6d 73 20 74 68 61 74 20 | 73 65 61 6d 6c 65 73 73 |ms that |seamless|
|00001770| 6c 79 0a 73 75 70 70 6f | 72 74 20 5a 4d 4f 44 45 |ly.suppo|rt ZMODE|
|00001780| 4d 20 63 6f 6d 6d 61 6e | 64 20 61 6e 64 20 66 69 |M comman|d and fi|
|00001790| 6c 65 20 41 75 74 6f 44 | 6f 77 6e 6c 6f 61 64 20 |le AutoD|ownload |
|000017a0| 28 50 72 6f 2d 59 41 4d | 20 61 6e 64 20 5a 43 4f |(Pro-YAM| and ZCO|
|000017b0| 4d 4d 29 2e 0a 0a 54 68 | 65 20 22 44 53 5a 22 20 |MM)...Th|e "DSZ" |
|000017c0| 73 68 61 72 65 77 61 72 | 65 20 70 72 6f 67 72 61 |sharewar|e progra|
|000017d0| 6d 20 61 6c 6c 6f 77 73 | 20 5a 4d 4f 44 45 4d 20 |m allows| ZMODEM |
|000017e0| 66 69 6c 65 20 74 72 61 | 6e 73 66 65 72 73 20 77 |file tra|nsfers w|
|000017f0| 69 74 68 0a 74 72 61 64 | 69 74 69 6f 6e 61 6c 20 |ith.trad|itional |
|00001800| 44 4f 53 20 63 6f 6d 6d | 20 70 72 6f 67 72 61 6d |DOS comm| program|
|00001810| 73 2c 20 62 75 74 20 69 | 74 20 6d 75 73 74 20 62 |s, but i|t must b|
|00001820| 65 20 63 61 6c 6c 65 64 | 20 6d 61 6e 75 61 6c 6c |e called| manuall|
|00001830| 79 2e 0a 28 54 68 65 20 | 63 6f 6d 70 75 74 65 72 |y..(The |computer|
|00001840| 20 73 68 6f 75 6c 64 20 | 64 6f 20 74 68 61 74 20 | should |do that |
|00001850| 66 6f 72 20 79 6f 75 21 | 29 20 44 53 5a 20 70 72 |for you!|) DSZ pr|
|00001860| 6f 76 69 64 65 73 20 61 | 20 22 6d 69 6e 69 0a 74 |ovides a| "mini.t|
|00001870| 65 72 6d 20 66 75 6e 63 | 74 69 6f 6e 22 20 74 68 |erm func|tion" th|
|00001880| 61 74 20 73 75 70 70 6f | 72 74 73 20 5a 4d 4f 44 |at suppo|rts ZMOD|
|00001890| 45 4d 20 41 75 74 6f 44 | 6f 77 6e 6c 6f 61 64 2e |EM AutoD|ownload.|
|000018a0| 20 20 44 53 5a 20 28 70 | 61 72 74 0a 6f 66 20 44 | DSZ (p|art.of D|
|000018b0| 53 5a 2e 41 52 43 29 20 | 61 6e 64 20 74 68 65 20 |SZ.ARC) |and the |
|000018c0| 5a 4d 4f 44 45 4d 20 70 | 72 6f 74 6f 63 6f 6c 20 |ZMODEM p|rotocol |
|000018d0| 64 65 73 63 72 69 70 74 | 69 6f 6e 20 28 59 5a 4d |descript|ion (YZM|
|000018e0| 4f 44 45 4d 2e 41 52 43 | 29 0a 61 72 65 20 6f 6e |ODEM.ARC|).are on|
|000018f0| 20 54 65 6c 65 47 6f 64 | 7a 69 6c 6c 61 20 61 6e | TeleGod|zilla an|
|00001900| 64 20 6f 74 68 65 72 20 | 66 69 6e 65 20 62 75 6c |d other |fine bul|
|00001910| 6c 65 74 69 6e 20 62 6f | 61 72 64 73 2e 0a 0a 43 |letin bo|ards...C|
|00001920| 68 75 63 6b 20 46 6f 72 | 73 62 65 72 67 20 57 41 |huck For|sberg WA|
|00001930| 37 4b 47 58 20 20 20 20 | 20 20 20 20 20 20 2e 2e |7KGX | ..|
|00001940| 2e 21 74 65 6b 74 72 6f | 6e 69 78 21 72 65 65 64 |.!tektro|nix!reed|
|00001950| 21 6f 6d 65 6e 21 63 61 | 66 20 0a 41 75 74 68 6f |!omen!ca|f .Autho|
|00001960| 72 20 6f 66 20 59 4d 4f | 44 45 4d 2c 20 5a 4d 4f |r of YMO|DEM, ZMO|
|00001970| 44 45 4d 2c 20 50 72 6f | 66 65 73 73 69 6f 6e 61 |DEM, Pro|fessiona|
|00001980| 6c 2d 59 41 4d 2c 20 5a | 43 4f 4d 4d 2c 20 61 6e |l-YAM, Z|COMM, an|
|00001990| 64 20 44 53 5a 0a 20 20 | 4f 6d 65 6e 20 54 65 63 |d DSZ. |Omen Tec|
|000019a0| 68 6e 6f 6c 6f 67 79 20 | 49 6e 63 20 20 20 20 22 |hnology |Inc "|
|000019b0| 54 68 65 20 48 69 67 68 | 20 52 65 6c 69 61 62 69 |The High| Reliabi|
|000019c0| 6c 69 74 79 20 53 6f 66 | 74 77 61 72 65 22 0a 31 |lity Sof|tware".1|
|000019d0| 37 35 30 35 2d 56 20 4e | 57 20 53 61 75 76 69 65 |7505-V N|W Sauvie|
|000019e0| 20 49 53 20 52 44 20 20 | 20 50 6f 72 74 6c 61 6e | IS RD | Portlan|
|000019f0| 64 20 4f 52 20 39 37 32 | 33 31 20 20 20 35 30 33 |d OR 972|31 503|
|00001a00| 2d 36 32 31 2d 33 34 30 | 36 0a 54 65 6c 65 47 6f |-621-340|6.TeleGo|
|00001a10| 64 7a 69 6c 6c 61 3a 36 | 32 31 2d 33 37 34 36 20 |dzilla:6|21-3746 |
|00001a20| 46 41 58 3a 36 32 31 2d | 33 37 33 35 20 43 49 53 |FAX:621-|3735 CIS|
|00001a30| 3a 37 30 30 30 37 2c 32 | 33 30 34 20 47 65 6e 69 |:70007,2|304 Geni|
|00001a40| 65 3a 43 41 46 0a 32 37 | 36 38 20 2d 44 4e 46 47 |e:CAF.27|68 -DNFG|
|00001a50| 56 4d 49 4e 20 73 7a 2e | 63 20 2d 6f 20 73 7a 0a |VMIN sz.|c -o sz.|
|00001a60| 09 73 69 7a 65 20 73 7a | 0a 09 2d 6c 6e 20 73 7a |.size sz|..-ln sz|
|00001a70| 20 73 62 0a 09 2d 6c 6e | 20 73 7a 20 73 78 0a 0a | sb..-ln| sz sx..|
|00001a80| 62 73 64 3a 0a 09 24 28 | 43 43 29 20 24 28 43 46 |bsd:..$(|CC) $(CF|
|00001a90| 4c 41 47 53 29 20 24 28 | 4f 46 4c 41 47 29 20 2d |LAGS) $(|OFLAG) -|
|00001aa0| 44 4d 44 3d 32 20 2d 44 | 73 74 72 63 68 72 3d 69 |DMD=2 -D|strchr=i|
|00001ab0| 6e 64 65 78 20 2d 44 56 | 37 20 72 7a 2e 63 20 2d |ndex -DV|7 rz.c -|
|00001ac0| 6f 20 72 7a 0a 09 73 69 | 7a 65 20 72 7a 0a 09 2d |o rz..si|ze rz..-|
|00001ad0| 6c 6e 20 72 7a 20 72 62 | 0a 09 2d 6c 6e 20 72 7a |ln rz rb|..-ln rz|
|00001ae0| 20 72 78 0a 09 24 28 43 | 43 29 20 24 28 43 46 4c | rx..$(C|C) $(CFL|
|00001af0| 41 47 53 29 20 24 28 4f | 46 4c 41 47 29 20 2d 44 |AGS) $(O|FLAG) -D|
|00001b00| 56 37 20 2d 44 54 58 42 | 53 49 5a 45 3d 33 32 37 |V7 -DTXB|SIZE=327|
|00001b10| 36 38 20 2d 44 4e 46 47 | 56 4d 49 4e 20 73 7a 2e |68 -DNFG|VMIN sz.|
|00001b20| 63 20 2d 6f 20 73 7a 0a | 09 73 69 7a 65 20 73 7a |c -o sz.|.size sz|
|00001b30| 0a 09 2d 6c 6e 20 73 7a | 20 73 62 0a 09 2d 6c 6e |..-ln sz| sb..-ln|
|00001b40| 20 73 7a 20 73 78 0a 0a | 73 7a 3a 20 6e 6f 74 68 | sz sx..|sz: noth|
|00001b50| 69 6e 67 0a 73 62 3a 20 | 6e 6f 74 68 69 6e 67 0a |ing.sb: |nothing.|
|00001b60| 72 7a 3a 20 6e 6f 74 68 | 69 6e 67 0a 72 62 3a 20 |rz: noth|ing.rb: |
|00001b70| 6e 6f 74 68 69 6e 67 0a | 00 00 00 00 00 00 00 00 |nothing.|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 63 72 63 2e 31 00 00 00 | 00 00 00 00 00 00 00 00 |crc.1...|........|
|00001c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 33 |.... 6|44 . 3|
|00001c70| 36 30 20 00 20 20 20 20 | 33 31 20 00 20 20 20 20 |60 . |31 . |
|00001c80| 20 20 20 31 35 36 34 20 | 20 34 34 30 32 31 31 36 | 1564 | 4402116|
|00001c90| 34 31 36 20 20 20 34 37 | 33 37 00 20 00 00 00 00 |416 47|37. ....|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 2e 54 48 20 43 52 43 20 | 31 20 4f 4d 45 4e 20 0a |.TH CRC |1 OMEN .|
|00001e10| 2e 53 48 20 4e 41 4d 45 | 0a 63 72 63 20 5c 2d 20 |.SH NAME|.crc \- |
|00001e20| 63 68 65 63 6b 73 75 6d | 20 66 69 6c 65 73 0a 2e |checksum| files..|
|00001e30| 53 48 20 53 59 4e 4f 50 | 53 49 53 0a 2e 42 20 63 |SH SYNOP|SIS..B c|
|00001e40| 72 63 0a 66 69 6c 65 20 | 2e 2e 2e 0a 2e 53 48 20 |rc.file |.....SH |
|00001e50| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 46 6f 72 20 |DESCRIPT|ION.For |
|00001e60| 65 61 63 68 20 66 69 6c | 65 2c 0a 2e 49 20 63 72 |each fil|e,..I cr|
|00001e70| 63 5c 5e 0a 63 61 6c 63 | 75 6c 61 74 65 73 20 61 |c\^.calc|ulates a|
|00001e80| 6e 64 20 70 72 69 6e 74 | 73 20 61 20 33 32 2d 62 |nd print|s a 32-b|
|00001e90| 69 74 20 43 52 43 2c 0a | 74 68 65 20 62 79 74 65 |it CRC,.|the byte|
|00001ea0| 20 63 6f 75 6e 74 2c 20 | 61 6e 64 20 74 68 65 20 | count, |and the |
|00001eb0| 66 69 6c 65 20 6e 61 6d | 65 2e 0a 49 74 20 69 73 |file nam|e..It is|
|00001ec0| 20 74 79 70 69 63 61 6c | 6c 79 20 75 73 65 64 20 | typical|ly used |
|00001ed0| 74 6f 20 76 61 6c 69 64 | 61 74 65 20 66 69 6c 65 |to valid|ate file|
|00001ee0| 73 20 74 72 61 6e 73 66 | 65 72 72 65 64 20 62 65 |s transf|erred be|
|00001ef0| 74 77 65 65 6e 0a 64 69 | 66 66 65 72 65 6e 74 20 |tween.di|fferent |
|00001f00| 73 79 73 74 65 6d 73 2c | 20 61 6e 64 20 69 73 20 |systems,| and is |
|00001f10| 75 73 65 66 75 6c 20 69 | 6e 20 64 65 74 65 63 74 |useful i|n detect|
|00001f20| 69 6e 67 20 73 75 62 74 | 6c 65 20 64 69 73 6b 20 |ing subt|le disk |
|00001f30| 63 6f 72 72 75 70 74 69 | 6f 6e 2e 0a 2e 49 20 43 |corrupti|on...I C|
|00001f40| 72 63 5c 5e 0a 75 73 65 | 73 20 61 20 63 68 65 63 |rc\^.use|s a chec|
|00001f50| 6b 73 75 6d 20 63 6f 6d | 70 61 74 69 62 6c 65 20 |ksum com|patible |
|00001f60| 77 69 74 68 20 74 68 65 | 0a 44 4f 53 0a 76 65 72 |with the|.DOS.ver|
|00001f70| 73 69 6f 6e 20 6f 66 20 | 63 72 63 2c 0a 74 68 65 |sion of |crc,.the|
|00001f80| 20 33 32 20 62 69 74 20 | 43 52 43 20 75 73 65 64 | 32 bit |CRC used|
|00001f90| 20 62 79 20 50 4b 5a 49 | 50 20 76 65 72 73 69 6f | by PKZI|P versio|
|00001fa0| 6e 20 30 2e 39 2c 0a 61 | 73 20 77 65 6c 6c 20 61 |n 0.9,.a|s well a|
|00001fb0| 73 20 74 68 65 20 22 63 | 72 63 22 20 63 6f 6d 6d |s the "c|rc" comm|
|00001fc0| 61 6e 64 20 69 6e 20 5a | 43 4f 4d 4d 20 61 6e 64 |and in Z|COMM and|
|00001fd0| 20 50 72 6f 66 65 73 73 | 69 6f 6e 61 6c 2d 59 41 | Profess|ional-YA|
|00001fe0| 4d 0a 28 68 69 67 68 20 | 72 65 6c 69 61 62 69 6c |M.(high |reliabil|
|00001ff0| 69 74 79 20 63 6f 6d 6d | 75 6e 69 63 61 74 69 6f |ity comm|unicatio|
|00002000| 6e 73 20 70 72 6f 67 72 | 61 6d 73 29 2e 0a 0a 54 |ns progr|ams)...T|
|00002010| 68 65 20 33 32 2d 62 69 | 74 20 43 52 43 20 75 73 |he 32-bi|t CRC us|
|00002020| 65 64 20 69 73 20 74 68 | 65 20 66 72 61 6d 65 0a |ed is th|e frame.|
|00002030| 63 68 65 63 6b 20 73 65 | 71 75 65 6e 63 65 20 69 |check se|quence i|
|00002040| 6e 20 41 44 43 43 50 20 | 28 41 4e 53 49 20 58 33 |n ADCCP |(ANSI X3|
|00002050| 2e 36 36 2c 20 61 6c 73 | 6f 20 6b 6e 6f 77 6e 20 |.66, als|o known |
|00002060| 61 73 20 46 49 50 53 20 | 50 55 42 20 37 31 0a 61 |as FIPS |PUB 71.a|
|00002070| 6e 64 20 46 45 44 2d 53 | 54 44 2d 31 30 30 33 2c |nd FED-S|TD-1003,|
|00002080| 20 74 68 65 20 55 2e 53 | 2e 20 76 65 72 73 69 6f | the U.S|. versio|
|00002090| 6e 73 20 6f 66 20 43 43 | 49 54 54 27 73 20 58 2e |ns of CC|ITT's X.|
|000020a0| 32 35 20 6c 69 6e 6b 2d | 6c 65 76 65 6c 0a 70 72 |25 link-|level.pr|
|000020b0| 6f 74 6f 63 6f 6c 29 2e | 0a 0a 33 32 20 62 69 74 |otocol).|..32 bit|
|000020c0| 20 43 52 43 20 63 6f 64 | 65 20 63 6f 75 72 74 65 | CRC cod|e courte|
|000020d0| 73 79 20 47 61 72 79 20 | 53 2e 20 42 72 6f 77 6e |sy Gary |S. Brown|
|000020e0| 2e 0a 2e 53 48 20 42 55 | 47 53 0a 41 6c 74 68 6f |...SH BU|GS.Altho|
|000020f0| 75 67 68 20 6d 6f 73 74 | 20 75 6e 6c 69 6b 65 6c |ugh most| unlikel|
|00002100| 79 2c 0a 66 69 6c 65 73 | 20 77 69 74 68 20 64 69 |y,.files| with di|
|00002110| 66 66 65 72 65 6e 74 20 | 64 61 74 61 20 6d 61 79 |fferent |data may|
|00002120| 20 73 74 69 6c 6c 20 70 | 72 6f 64 75 63 65 20 74 | still p|roduce t|
|00002130| 68 65 20 73 61 6d 65 20 | 63 72 63 20 76 61 6c 75 |he same |crc valu|
|00002140| 65 2e 0a 2e 53 48 20 22 | 53 45 45 20 41 4c 53 4f |e...SH "|SEE ALSO|
|00002150| 22 0a 63 68 65 6b 28 31 | 29 2c 20 74 6f 63 70 6d |".chek(1|), tocpm|
|00002160| 28 31 29 2c 20 73 75 6d | 28 31 29 2c 20 77 63 28 |(1), sum|(1), wc(|
|00002170| 31 29 2e 0a 6f 6d 6d 61 | 6e 64 3a 20 22 73 6f 75 |1)..omma|nd: "sou|
|00002180| 72 63 65 20 76 75 70 6c | 2e 74 22 2e 20 20 54 68 |rce vupl|.t". Th|
|00002190| 69 73 20 77 69 6c 6c 0a | 61 74 74 65 6d 70 74 20 |is will.|attempt |
|000021a0| 74 6f 20 73 74 61 72 74 | 20 61 20 4b 65 72 6d 69 |to start| a Kermi|
|000021b0| 74 20 73 65 72 76 65 72 | 20 61 6e 73 20 75 70 6c |t server| ans upl|
|000021c0| 6f 61 64 20 74 68 65 20 | 66 69 6c 65 73 20 74 6f |oad the |files to|
|000021d0| 20 69 74 2e 0a 49 66 20 | 74 68 65 20 73 63 72 69 | it..If |the scri|
|000021e0| 70 74 20 63 61 6e 27 74 | 20 66 69 72 65 20 75 70 |pt can't| fire up|
|000021f0| 20 61 20 4b 65 72 6d 69 | 74 20 73 65 72 76 65 72 | a Kermi|t server|
|00002200| 63 72 63 2e 63 00 00 00 | 00 00 00 00 00 00 00 00 |crc.c...|........|
|00002210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 33 |.... 6|44 . 3|
|00002270| 36 30 20 00 20 20 20 20 | 33 31 20 00 20 20 20 20 |60 . |31 . |
|00002280| 20 20 32 30 35 36 36 20 | 20 34 32 33 35 31 35 30 | 20566 | 4235150|
|00002290| 31 37 34 20 20 20 35 30 | 34 37 00 20 00 00 00 00 |174 50|47. ....|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 2f 2a 25 20 63 63 20 2d | 4f 20 2d 4b 20 2d 64 6f |/*% cc -|O -K -do|
|00002410| 73 20 25 20 2d 6f 20 63 | 72 63 2e 65 78 65 0a 2a |s % -o c|rc.exe.*|
|00002420| 2f 0a 0a 2f 2a 0a 20 2a | 20 20 43 72 63 20 2d 20 |/../*. *| Crc - |
|00002430| 33 32 20 42 49 54 20 41 | 4e 53 49 20 58 33 2e 36 |32 BIT A|NSI X3.6|
|00002440| 36 20 43 52 43 20 63 68 | 65 63 6b 73 75 6d 20 66 |6 CRC ch|ecksum f|
|00002450| 69 6c 65 73 0a 20 2a 2f | 0a 23 69 6e 63 6c 75 64 |iles. */|.#includ|
|00002460| 65 20 3c 73 74 64 69 6f | 2e 68 3e 0a 23 64 65 66 |e <stdio|.h>.#def|
|00002470| 69 6e 65 20 4f 4b 20 30 | 0a 23 64 65 66 69 6e 65 |ine OK 0|.#define|
|00002480| 20 45 52 52 4f 52 20 28 | 2d 31 29 0a 23 64 65 66 | ERROR (|-1).#def|
|00002490| 69 6e 65 20 4c 49 4e 54 | 5f 41 52 47 53 0a 0a 2f |ine LINT|_ARGS../|
|000024a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000024b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000024c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000024d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000024e0| 2a 2a 2a 2a 2a 2a 5c 0a | 7c 2a 20 20 20 20 20 20 |******\.||* |
|000024f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 7c | | *||
|00002530| 0a 7c 2a 20 44 65 6d 6f | 6e 73 74 72 61 74 69 6f |.|* Demo|nstratio|
|00002540| 6e 20 70 72 6f 67 72 61 | 6d 20 74 6f 20 63 6f 6d |n progra|m to com|
|00002550| 70 75 74 65 20 74 68 65 | 20 33 32 2d 62 69 74 20 |pute the| 32-bit |
|00002560| 43 52 43 20 75 73 65 64 | 20 61 73 20 74 68 65 20 |CRC used| as the |
|00002570| 66 72 61 6d 65 20 20 2a | 7c 0a 7c 2a 20 63 68 65 |frame *||.|* che|
|00002580| 63 6b 20 73 65 71 75 65 | 6e 63 65 20 69 6e 20 41 |ck seque|nce in A|
|00002590| 44 43 43 50 20 28 41 4e | 53 49 20 58 33 2e 36 36 |DCCP (AN|SI X3.66|
|000025a0| 2c 20 61 6c 73 6f 20 6b | 6e 6f 77 6e 20 61 73 20 |, also k|nown as |
|000025b0| 46 49 50 53 20 50 55 42 | 20 37 31 20 20 20 20 20 |FIPS PUB| 71 |
|000025c0| 2a 7c 0a 7c 2a 20 61 6e | 64 20 46 45 44 2d 53 54 |*|.|* an|d FED-ST|
|000025d0| 44 2d 31 30 30 33 2c 20 | 74 68 65 20 55 2e 53 2e |D-1003, |the U.S.|
|000025e0| 20 76 65 72 73 69 6f 6e | 73 20 6f 66 20 43 43 49 | version|s of CCI|
|000025f0| 54 54 27 73 20 58 2e 32 | 35 20 6c 69 6e 6b 2d 6c |TT's X.2|5 link-l|
|00002600| 65 76 65 6c 20 20 20 20 | 20 2a 7c 0a 7c 2a 20 70 |evel | *|.|* p|
|00002610| 72 6f 74 6f 63 6f 6c 29 | 2e 20 20 54 68 65 20 33 |rotocol)|. The 3|
|00002620| 32 2d 62 69 74 20 46 43 | 53 20 77 61 73 20 61 64 |2-bit FC|S was ad|
|00002630| 64 65 64 20 76 69 61 20 | 74 68 65 20 46 65 64 65 |ded via |the Fede|
|00002640| 72 61 6c 20 52 65 67 69 | 73 74 65 72 2c 20 20 20 |ral Regi|ster, |
|00002650| 20 20 2a 7c 0a 7c 2a 20 | 31 20 4a 75 6e 65 20 31 | *|.|* |1 June 1|
|00002660| 39 38 32 2c 20 70 2e 32 | 33 37 39 38 2e 20 20 49 |982, p.2|3798. I|
|00002670| 20 70 72 65 73 75 6d 65 | 20 62 75 74 20 64 6f 6e | presume| but don|
|00002680| 27 74 20 6b 6e 6f 77 20 | 66 6f 72 20 63 65 72 74 |'t know |for cert|
|00002690| 61 69 6e 20 74 68 61 74 | 20 20 20 2a 7c 0a 7c 2a |ain that| *|.|*|
|000026a0| 20 74 68 69 73 20 70 6f | 6c 79 6e 6f 6d 69 61 6c | this po|lynomial|
|000026b0| 20 69 73 20 6f 72 20 77 | 69 6c 6c 20 62 65 20 69 | is or w|ill be i|
|000026c0| 6e 63 6c 75 64 65 64 20 | 69 6e 20 43 43 49 54 54 |ncluded |in CCITT|
|000026d0| 20 56 2e 34 31 2c 20 77 | 68 69 63 68 20 20 20 20 | V.41, w|hich |
|000026e0| 20 20 20 20 2a 7c 0a 7c | 2a 20 64 65 66 69 6e 65 | *|.||* define|
|000026f0| 73 20 74 68 65 20 31 36 | 2d 62 69 74 20 43 52 43 |s the 16|-bit CRC|
|00002700| 20 28 6f 66 74 65 6e 20 | 63 61 6c 6c 65 64 20 43 | (often |called C|
|00002710| 52 43 2d 43 43 49 54 54 | 29 20 70 6f 6c 79 6e 6f |RC-CCITT|) polyno|
|00002720| 6d 69 61 6c 2e 20 20 46 | 49 50 53 20 20 2a 7c 0a |mial. F|IPS *|.|
|00002730| 7c 2a 20 50 55 42 20 37 | 38 20 73 61 79 73 20 74 ||* PUB 7|8 says t|
|00002740| 68 61 74 20 74 68 65 20 | 33 32 2d 62 69 74 20 46 |hat the |32-bit F|
|00002750| 43 53 20 72 65 64 75 63 | 65 73 20 6f 74 68 65 72 |CS reduc|es other|
|00002760| 77 69 73 65 20 75 6e 64 | 65 74 65 63 74 65 64 20 |wise und|etected |
|00002770| 20 20 20 20 20 20 2a 7c | 0a 7c 2a 20 65 72 72 6f | *||.|* erro|
|00002780| 72 73 20 62 79 20 61 20 | 66 61 63 74 6f 72 20 6f |rs by a |factor o|
|00002790| 66 20 31 30 5e 2d 35 20 | 6f 76 65 72 20 31 36 2d |f 10^-5 |over 16-|
|000027a0| 62 69 74 20 46 43 53 2e | 20 20 20 20 20 20 20 20 |bit FCS.| |
|000027b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a | | *|
|000027c0| 7c 0a 7c 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 ||.|* | |
|000027d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002800| 20 20 20 20 20 20 20 20 | 2a 7c 0a 5c 2a 2a 2a 2a | |*|.\****|
|00002810| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002820| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002830| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002840| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002850| 2a 2a 2f 0a 0a 2f 2a 20 | 4e 65 65 64 20 61 6e 20 |**/../* |Need an |
|00002860| 75 6e 73 69 67 6e 65 64 | 20 74 79 70 65 20 63 61 |unsigned| type ca|
|00002870| 70 61 62 6c 65 20 6f 66 | 20 68 6f 6c 64 69 6e 67 |pable of| holding|
|00002880| 20 33 32 20 62 69 74 73 | 3b 20 2a 2f 0a 74 79 70 | 32 bits|; */.typ|
|00002890| 65 64 65 66 20 75 6e 73 | 69 67 6e 65 64 20 6c 6f |edef uns|igned lo|
|000028a0| 6e 67 20 69 6e 74 20 55 | 4e 53 5f 33 32 5f 42 49 |ng int U|NS_32_BI|
|000028b0| 54 53 3b 0a 0a 2f 2a 0a | 20 2a 20 43 6f 70 79 72 |TS;../*.| * Copyr|
|000028c0| 69 67 68 74 20 28 43 29 | 20 31 39 38 36 20 47 61 |ight (C)| 1986 Ga|
|000028d0| 72 79 20 53 2e 20 42 72 | 6f 77 6e 2e 20 20 59 6f |ry S. Br|own. Yo|
|000028e0| 75 20 6d 61 79 20 75 73 | 65 20 74 68 69 73 20 70 |u may us|e this p|
|000028f0| 72 6f 67 72 61 6d 2c 20 | 6f 72 0a 20 2a 20 63 6f |rogram, |or. * co|
|00002900| 64 65 20 6f 72 20 74 61 | 62 6c 65 73 20 65 78 74 |de or ta|bles ext|
|00002910| 72 61 63 74 65 64 20 66 | 72 6f 6d 20 69 74 2c 20 |racted f|rom it, |
|00002920| 61 73 20 64 65 73 69 72 | 65 64 20 77 69 74 68 6f |as desir|ed witho|
|00002930| 75 74 20 72 65 73 74 72 | 69 63 74 69 6f 6e 2e 0a |ut restr|iction..|
|00002940| 20 2a 2f 0a 2f 2a 20 46 | 69 72 73 74 2c 20 74 68 | */./* F|irst, th|
|00002950| 65 20 70 6f 6c 79 6e 6f | 6d 69 61 6c 20 69 74 73 |e polyno|mial its|
|00002960| 65 6c 66 20 61 6e 64 20 | 69 74 73 20 74 61 62 6c |elf and |its tabl|
|00002970| 65 20 6f 66 20 66 65 65 | 64 62 61 63 6b 20 74 65 |e of fee|dback te|
|00002980| 72 6d 73 2e 20 20 54 68 | 65 20 20 2a 2f 0a 2f 2a |rms. Th|e */./*|
|00002990| 20 70 6f 6c 79 6e 6f 6d | 69 61 6c 20 69 73 20 20 | polynom|ial is |
|000029a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029d0| 20 20 20 20 20 2a 2f 0a | 2f 2a 20 58 5e 33 32 2b | */.|/* X^32+|
|000029e0| 58 5e 32 36 2b 58 5e 32 | 33 2b 58 5e 32 32 2b 58 |X^26+X^2|3+X^22+X|
|000029f0| 5e 31 36 2b 58 5e 31 32 | 2b 58 5e 31 31 2b 58 5e |^16+X^12|+X^11+X^|
|00002a00| 31 30 2b 58 5e 38 2b 58 | 5e 37 2b 58 5e 35 2b 58 |10+X^8+X|^7+X^5+X|
|00002a10| 5e 34 2b 58 5e 32 2b 58 | 5e 31 2b 58 5e 30 20 2a |^4+X^2+X|^1+X^0 *|
|00002a20| 2f 0a 2f 2a 20 4e 6f 74 | 65 20 74 68 61 74 20 77 |/./* Not|e that w|
|00002a30| 65 20 74 61 6b 65 20 69 | 74 20 22 62 61 63 6b 77 |e take i|t "backw|
|00002a40| 61 72 64 73 22 20 61 6e | 64 20 70 75 74 20 74 68 |ards" an|d put th|
|00002a50| 65 20 68 69 67 68 65 73 | 74 2d 6f 72 64 65 72 20 |e highes|t-order |
|00002a60| 74 65 72 6d 20 69 6e 20 | 20 2a 2f 0a 2f 2a 20 74 |term in | */./* t|
|00002a70| 68 65 20 6c 6f 77 65 73 | 74 2d 6f 72 64 65 72 20 |he lowes|t-order |
|00002a80| 62 69 74 2e 20 20 54 68 | 65 20 58 5e 33 32 20 74 |bit. Th|e X^32 t|
|00002a90| 65 72 6d 20 69 73 20 22 | 69 6d 70 6c 69 65 64 22 |erm is "|implied"|
|00002aa0| 3b 20 74 68 65 20 4c 53 | 42 20 69 73 20 74 68 65 |; the LS|B is the|
|00002ab0| 20 20 20 2a 2f 0a 2f 2a | 20 58 5e 33 31 20 74 65 | */./*| X^31 te|
|00002ac0| 72 6d 2c 20 65 74 63 2e | 20 20 54 68 65 20 58 5e |rm, etc.| The X^|
|00002ad0| 30 20 74 65 72 6d 20 28 | 75 73 75 61 6c 6c 79 20 |0 term (|usually |
|00002ae0| 73 68 6f 77 6e 20 61 73 | 20 22 2b 31 22 29 20 72 |shown as| "+1") r|
|00002af0| 65 73 75 6c 74 73 20 69 | 6e 20 20 20 20 2a 2f 0a |esults i|n */.|
|00002b00| 2f 2a 20 74 68 65 20 4d | 53 42 20 62 65 69 6e 67 |/* the M|SB being|
|00002b10| 20 31 2e 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | 1. | |
|00002b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b40| 20 20 20 20 20 20 20 2a | 2f 0a 0a 2f 2a 20 4e 6f | *|/../* No|
|00002b50| 74 65 20 74 68 61 74 20 | 74 68 65 20 75 73 75 61 |te that |the usua|
|00002b60| 6c 20 68 61 72 64 77 61 | 72 65 20 73 68 69 66 74 |l hardwa|re shift|
|00002b70| 20 72 65 67 69 73 74 65 | 72 20 69 6d 70 6c 65 6d | registe|r implem|
|00002b80| 65 6e 74 61 74 69 6f 6e | 2c 20 77 68 69 63 68 20 |entation|, which |
|00002b90| 20 20 2a 2f 0a 2f 2a 20 | 69 73 20 77 68 61 74 20 | */./* |is what |
|00002ba0| 77 65 27 72 65 20 75 73 | 69 6e 67 20 28 77 65 27 |we're us|ing (we'|
|00002bb0| 72 65 20 6d 65 72 65 6c | 79 20 6f 70 74 69 6d 69 |re merel|y optimi|
|00002bc0| 7a 69 6e 67 20 69 74 20 | 62 79 20 64 6f 69 6e 67 |zing it |by doing|
|00002bd0| 20 65 69 67 68 74 2d 62 | 69 74 20 20 2a 2f 0a 2f | eight-b|it */./|
|00002be0| 2a 20 63 68 75 6e 6b 73 | 20 61 74 20 61 20 74 69 |* chunks| at a ti|
|00002bf0| 6d 65 29 20 73 68 69 66 | 74 73 20 62 69 74 73 20 |me) shif|ts bits |
|00002c00| 69 6e 74 6f 20 74 68 65 | 20 6c 6f 77 65 73 74 2d |into the| lowest-|
|00002c10| 6f 72 64 65 72 20 74 65 | 72 6d 2e 20 20 49 6e 20 |order te|rm. In |
|00002c20| 6f 75 72 20 20 20 2a 2f | 0a 2f 2a 20 69 6d 70 6c |our */|./* impl|
|00002c30| 65 6d 65 6e 74 61 74 69 | 6f 6e 2c 20 74 68 61 74 |ementati|on, that|
|00002c40| 20 6d 65 61 6e 73 20 73 | 68 69 66 74 69 6e 67 20 | means s|hifting |
|00002c50| 74 6f 77 61 72 64 73 20 | 74 68 65 20 72 69 67 68 |towards |the righ|
|00002c60| 74 2e 20 20 57 68 79 20 | 64 6f 20 77 65 20 20 20 |t. Why |do we |
|00002c70| 2a 2f 0a 2f 2a 20 64 6f | 20 69 74 20 74 68 69 73 |*/./* do| it this|
|00002c80| 20 77 61 79 3f 20 20 42 | 65 63 61 75 73 65 20 74 | way? B|ecause t|
|00002c90| 68 65 20 63 61 6c 63 75 | 6c 61 74 65 64 20 43 52 |he calcu|lated CR|
|00002ca0| 43 20 6d 75 73 74 20 62 | 65 20 74 72 61 6e 73 6d |C must b|e transm|
|00002cb0| 69 74 74 65 64 20 69 6e | 20 20 2a 2f 0a 2f 2a 20 |itted in| */./* |
|00002cc0| 6f 72 64 65 72 20 66 72 | 6f 6d 20 68 69 67 68 65 |order fr|om highe|
|00002cd0| 73 74 2d 6f 72 64 65 72 | 20 74 65 72 6d 20 74 6f |st-order| term to|
|00002ce0| 20 6c 6f 77 65 73 74 2d | 6f 72 64 65 72 20 74 65 | lowest-|order te|
|00002cf0| 72 6d 2e 20 20 55 41 52 | 54 73 20 74 72 61 6e 73 |rm. UAR|Ts trans|
|00002d00| 6d 69 74 20 2a 2f 0a 2f | 2a 20 63 68 61 72 61 63 |mit */./|* charac|
|00002d10| 74 65 72 73 20 69 6e 20 | 6f 72 64 65 72 20 66 72 |ters in |order fr|
|00002d20| 6f 6d 20 4c 53 42 20 74 | 6f 20 4d 53 42 2e 20 20 |om LSB t|o MSB. |
|00002d30| 42 79 20 73 74 6f 72 69 | 6e 67 20 74 68 65 20 43 |By stori|ng the C|
|00002d40| 52 43 20 74 68 69 73 20 | 77 61 79 2c 20 20 2a 2f |RC this |way, */|
|00002d50| 0a 2f 2a 20 77 65 20 68 | 61 6e 64 20 69 74 20 74 |./* we h|and it t|
|00002d60| 6f 20 74 68 65 20 55 41 | 52 54 20 69 6e 20 74 68 |o the UA|RT in th|
|00002d70| 65 20 6f 72 64 65 72 20 | 6c 6f 77 2d 62 79 74 65 |e order |low-byte|
|00002d80| 20 74 6f 20 68 69 67 68 | 2d 62 79 74 65 3b 20 74 | to high|-byte; t|
|00002d90| 68 65 20 55 41 52 54 20 | 2a 2f 0a 2f 2a 20 73 65 |he UART |*/./* se|
|00002da0| 6e 64 73 20 65 61 63 68 | 20 6c 6f 77 2d 62 69 74 |nds each| low-bit|
|00002db0| 20 74 6f 20 68 69 67 68 | 74 2d 62 69 74 3b 20 61 | to high|t-bit; a|
|00002dc0| 6e 64 20 74 68 65 20 72 | 65 73 75 6c 74 20 69 73 |nd the r|esult is|
|00002dd0| 20 74 72 61 6e 73 6d 69 | 73 73 69 6f 6e 20 62 69 | transmi|ssion bi|
|00002de0| 74 20 2a 2f 0a 2f 2a 20 | 62 79 20 62 69 74 20 66 |t */./* |by bit f|
|00002df0| 72 6f 6d 20 68 69 67 68 | 65 73 74 2d 20 74 6f 20 |rom high|est- to |
|00002e00| 6c 6f 77 65 73 74 2d 6f | 72 64 65 72 20 74 65 72 |lowest-o|rder ter|
|00002e10| 6d 20 77 69 74 68 6f 75 | 74 20 72 65 71 75 69 72 |m withou|t requir|
|00002e20| 69 6e 67 20 61 6e 79 20 | 62 69 74 20 2a 2f 0a 2f |ing any |bit */./|
|00002e30| 2a 20 73 68 75 66 66 6c | 69 6e 67 20 6f 6e 20 6f |* shuffl|ing on o|
|00002e40| 75 72 20 70 61 72 74 2e | 20 20 52 65 63 65 70 74 |ur part.| Recept|
|00002e50| 69 6f 6e 20 77 6f 72 6b | 73 20 73 69 6d 69 6c 61 |ion work|s simila|
|00002e60| 72 6c 79 2e 20 20 20 20 | 20 20 20 20 20 20 20 20 |rly. | |
|00002e70| 20 20 20 20 20 20 2a 2f | 0a 0a 2f 2a 20 54 68 65 | */|../* The|
|00002e80| 20 66 65 65 64 62 61 63 | 6b 20 74 65 72 6d 73 20 | feedbac|k terms |
|00002e90| 74 61 62 6c 65 20 63 6f | 6e 73 69 73 74 73 20 6f |table co|nsists o|
|00002ea0| 66 20 32 35 36 2c 20 33 | 32 2d 62 69 74 20 65 6e |f 256, 3|2-bit en|
|00002eb0| 74 72 69 65 73 2e 20 20 | 4e 6f 74 65 73 3a 20 20 |tries. |Notes: |
|00002ec0| 20 2a 2f 0a 2f 2a 20 20 | 20 20 20 20 20 20 20 20 | */./* | |
|00002ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002f00| 20 20 20 20 20 20 20 20 | 20 20 20 2a 2f 0a 2f 2a | | */./*|
|00002f10| 20 20 31 2e 20 54 68 65 | 20 74 61 62 6c 65 20 63 | 1. The| table c|
|00002f20| 61 6e 20 62 65 20 67 65 | 6e 65 72 61 74 65 64 20 |an be ge|nerated |
|00002f30| 61 74 20 72 75 6e 74 69 | 6d 65 20 69 66 20 64 65 |at runti|me if de|
|00002f40| 73 69 72 65 64 3b 20 63 | 6f 64 65 20 74 6f 20 64 |sired; c|ode to d|
|00002f50| 6f 20 73 6f 20 2a 2f 0a | 2f 2a 20 20 20 20 20 69 |o so */.|/* i|
|00002f60| 73 20 73 68 6f 77 6e 20 | 6c 61 74 65 72 2e 20 20 |s shown |later. |
|00002f70| 49 74 20 6d 69 67 68 74 | 20 6e 6f 74 20 62 65 20 |It might| not be |
|00002f80| 6f 62 76 69 6f 75 73 2c | 20 62 75 74 20 74 68 65 |obvious,| but the|
|00002f90| 20 66 65 65 64 62 61 63 | 6b 20 20 20 20 20 20 2a | feedbac|k *|
|00002fa0| 2f 0a 2f 2a 20 20 20 20 | 20 74 65 72 6d 73 20 73 |/./* | terms s|
|00002fb0| 69 6d 70 6c 79 20 72 65 | 70 72 65 73 65 6e 74 20 |imply re|present |
|00002fc0| 74 68 65 20 72 65 73 75 | 6c 74 73 20 6f 66 20 65 |the resu|lts of e|
|00002fd0| 69 67 68 74 20 73 68 69 | 66 74 2f 78 6f 72 20 6f |ight shi|ft/xor o|
|00002fe0| 70 65 72 61 2d 20 20 20 | 20 2a 2f 0a 2f 2a 20 20 |pera- | */./* |
|00002ff0| 20 20 20 74 69 6f 6e 73 | 20 66 6f 72 20 61 6c 6c | tions| for all|
|00003000| 20 63 6f 6d 62 69 6e 61 | 74 69 6f 6e 73 20 6f 66 | combina|tions of|
|00003010| 20 64 61 74 61 20 61 6e | 64 20 43 52 43 20 72 65 | data an|d CRC re|
|00003020| 67 69 73 74 65 72 20 76 | 61 6c 75 65 73 2e 20 20 |gister v|alues. |
|00003030| 20 20 20 2a 2f 0a 2f 2a | 20 20 20 20 20 20 20 20 | */./*| |
|00003040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2a 2f 0a | | */.|
|00003080| 2f 2a 20 20 32 2e 20 54 | 68 65 20 43 52 43 20 61 |/* 2. T|he CRC a|
|00003090| 63 63 75 6d 75 6c 61 74 | 69 6f 6e 20 6c 6f 67 69 |ccumulat|ion logi|
|000030a0| 63 20 69 73 20 74 68 65 | 20 73 61 6d 65 20 66 6f |c is the| same fo|
|000030b0| 72 20 61 6c 6c 20 43 52 | 43 20 70 6f 6c 79 6e 6f |r all CR|C polyno|
|000030c0| 6d 69 61 6c 73 2c 20 2a | 2f 0a 2f 2a 20 20 20 20 |mials, *|/./* |
|000030d0| 20 62 65 20 74 68 65 79 | 20 73 69 78 74 65 65 6e | be they| sixteen|
|000030e0| 20 6f 72 20 74 68 69 72 | 74 79 2d 74 77 6f 20 62 | or thir|ty-two b|
|000030f0| 69 74 73 20 77 69 64 65 | 2e 20 20 59 6f 75 20 73 |its wide|. You s|
|00003100| 69 6d 70 6c 79 20 63 68 | 6f 6f 73 65 20 74 68 65 |imply ch|oose the|
|00003110| 20 2a 2f 0a 2f 2a 20 20 | 20 20 20 61 70 70 72 6f | */./* | appro|
|00003120| 70 72 69 61 74 65 20 74 | 61 62 6c 65 2e 20 20 41 |priate t|able. A|
|00003130| 6c 74 65 72 6e 61 74 69 | 76 65 6c 79 2c 20 62 65 |lternati|vely, be|
|00003140| 63 61 75 73 65 20 74 68 | 65 20 74 61 62 6c 65 20 |cause th|e table |
|00003150| 63 61 6e 20 62 65 20 20 | 20 20 20 2a 2f 0a 2f 2a |can be | */./*|
|00003160| 20 20 20 20 20 67 65 6e | 65 72 61 74 65 64 20 61 | gen|erated a|
|00003170| 74 20 72 75 6e 74 69 6d | 65 2c 20 79 6f 75 20 63 |t runtim|e, you c|
|00003180| 61 6e 20 73 74 61 72 74 | 20 62 79 20 67 65 6e 65 |an start| by gene|
|00003190| 72 61 74 69 6e 67 20 74 | 68 65 20 74 61 62 6c 65 |rating t|he table|
|000031a0| 20 66 6f 72 20 2a 2f 0a | 2f 2a 20 20 20 20 20 74 | for */.|/* t|
|000031b0| 68 65 20 70 6f 6c 79 6e | 6f 6d 69 61 6c 20 69 6e |he polyn|omial in|
|000031c0| 20 71 75 65 73 74 69 6f | 6e 20 61 6e 64 20 75 73 | questio|n and us|
|000031d0| 65 20 65 78 61 63 74 6c | 79 20 74 68 65 20 73 61 |e exactl|y the sa|
|000031e0| 6d 65 20 22 75 70 64 63 | 72 63 22 2c 20 20 20 2a |me "updc|rc", *|
|000031f0| 2f 0a 2f 2a 20 20 20 20 | 20 69 66 20 79 6f 75 72 |/./* | if your|
|00003200| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 6e 65 65 | applica|tion nee|
|00003210| 64 6e 27 74 20 73 69 6d | 75 6c 74 61 6e 65 6f 75 |dn't sim|ultaneou|
|00003220| 73 6c 79 20 68 61 6e 64 | 6c 65 20 74 77 6f 20 43 |sly hand|le two C|
|00003230| 52 43 20 20 20 20 20 20 | 20 2a 2f 0a 2f 2a 20 20 |RC | */./* |
|00003240| 20 20 20 70 6f 6c 79 6e | 6f 6d 69 61 6c 73 2e 20 | polyn|omials. |
|00003250| 20 28 4e 6f 74 65 2c 20 | 68 6f 77 65 76 65 72 2c | (Note, |however,|
|00003260| 20 74 68 61 74 20 58 4d | 4f 44 45 4d 20 69 73 20 | that XM|ODEM is |
|00003270| 73 74 72 61 6e 67 65 2e | 29 20 20 20 20 20 20 20 |strange.|) |
|00003280| 20 20 20 2a 2f 0a 2f 2a | 20 20 20 20 20 20 20 20 | */./*| |
|00003290| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000032a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000032b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000032c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2a 2f 0a | | */.|
|000032d0| 2f 2a 20 20 33 2e 20 46 | 6f 72 20 31 36 2d 62 69 |/* 3. F|or 16-bi|
|000032e0| 74 20 43 52 43 73 2c 20 | 74 68 65 20 74 61 62 6c |t CRCs, |the tabl|
|000032f0| 65 20 65 6e 74 72 69 65 | 73 20 6e 65 65 64 20 62 |e entrie|s need b|
|00003300| 65 20 6f 6e 6c 79 20 31 | 36 20 62 69 74 73 20 77 |e only 1|6 bits w|
|00003310| 69 64 65 3b 20 20 20 2a | 2f 0a 2f 2a 20 20 20 20 |ide; *|/./* |
|00003320| 20 6f 66 20 63 6f 75 72 | 73 65 2c 20 33 32 2d 62 | of cour|se, 32-b|
|00003330| 69 74 20 65 6e 74 72 69 | 65 73 20 77 6f 72 6b 20 |it entri|es work |
|00003340| 4f 4b 20 69 66 20 74 68 | 65 20 68 69 67 68 20 31 |OK if th|e high 1|
|00003350| 36 20 62 69 74 73 20 61 | 72 65 20 7a 65 72 6f 2e |6 bits a|re zero.|
|00003360| 20 2a 2f 0a 2f 2a 20 20 | 20 20 20 20 20 20 20 20 | */./* | |
|00003370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000033a0| 20 20 20 20 20 20 20 20 | 20 20 20 2a 2f 0a 2f 2a | | */./*|
|000033b0| 20 20 34 2e 20 54 68 65 | 20 76 61 6c 75 65 73 20 | 4. The| values |
|000033c0| 6d 75 73 74 20 62 65 20 | 72 69 67 68 74 2d 73 68 |must be |right-sh|
|000033d0| 69 66 74 65 64 20 62 79 | 20 65 69 67 68 74 20 62 |ifted by| eight b|
|000033e0| 69 74 73 20 62 79 20 74 | 68 65 20 22 75 70 64 63 |its by t|he "updc|
|000033f0| 72 63 22 20 20 2a 2f 0a | 2f 2a 20 20 20 20 20 6c |rc" */.|/* l|
|00003400| 6f 67 69 63 3b 20 74 68 | 65 20 73 68 69 66 74 20 |ogic; th|e shift |
|00003410| 6d 75 73 74 20 62 65 20 | 75 6e 73 69 67 6e 65 64 |must be |unsigned|
|00003420| 20 28 62 72 69 6e 67 20 | 69 6e 20 7a 65 72 6f 65 | (bring |in zeroe|
|00003430| 73 29 2e 20 20 4f 6e 20 | 73 6f 6d 65 20 20 20 2a |s). On |some *|
|00003440| 2f 0a 2f 2a 20 20 20 20 | 20 68 61 72 64 77 61 72 |/./* | hardwar|
|00003450| 65 20 79 6f 75 20 63 6f | 75 6c 64 20 70 72 6f 62 |e you co|uld prob|
|00003460| 61 62 6c 79 20 6f 70 74 | 69 6d 69 7a 65 20 74 68 |ably opt|imize th|
|00003470| 65 20 73 68 69 66 74 20 | 69 6e 20 61 73 73 65 6d |e shift |in assem|
|00003480| 62 6c 65 72 20 62 79 20 | 20 2a 2f 0a 2f 2a 20 20 |bler by | */./* |
|00003490| 20 20 20 75 73 69 6e 67 | 20 62 79 74 65 2d 73 77 | using| byte-sw|
|000034a0| 61 70 20 69 6e 73 74 72 | 75 63 74 69 6f 6e 73 2e |ap instr|uctions.|
|000034b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000034c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000034d0| 20 20 20 2a 2f 0a 0a 73 | 74 61 74 69 63 20 55 4e | */..s|tatic UN|
|000034e0| 53 5f 33 32 5f 42 49 54 | 53 20 63 72 63 5f 33 32 |S_32_BIT|S crc_32|
|000034f0| 5f 74 61 62 5b 5d 20 3d | 20 7b 20 2f 2a 20 43 52 |_tab[] =| { /* CR|
|00003500| 43 20 70 6f 6c 79 6e 6f | 6d 69 61 6c 20 30 78 65 |C polyno|mial 0xe|
|00003510| 64 62 38 38 33 32 30 20 | 2a 2f 0a 30 78 30 30 30 |db88320 |*/.0x000|
|00003520| 30 30 30 30 30 2c 20 30 | 78 37 37 30 37 33 30 39 |00000, 0|x7707309|
|00003530| 36 2c 20 30 78 65 65 30 | 65 36 31 32 63 2c 20 30 |6, 0xee0|e612c, 0|
|00003540| 78 39 39 30 39 35 31 62 | 61 2c 20 30 78 30 37 36 |x990951b|a, 0x076|
|00003550| 64 63 34 31 39 2c 20 30 | 78 37 30 36 61 66 34 38 |dc419, 0|x706af48|
|00003560| 66 2c 20 30 78 65 39 36 | 33 61 35 33 35 2c 20 30 |f, 0xe96|3a535, 0|
|00003570| 78 39 65 36 34 39 35 61 | 33 2c 0a 30 78 30 65 64 |x9e6495a|3,.0x0ed|
|00003580| 62 38 38 33 32 2c 20 30 | 78 37 39 64 63 62 38 61 |b8832, 0|x79dcb8a|
|00003590| 34 2c 20 30 78 65 30 64 | 35 65 39 31 65 2c 20 30 |4, 0xe0d|5e91e, 0|
|000035a0| 78 39 37 64 32 64 39 38 | 38 2c 20 30 78 30 39 62 |x97d2d98|8, 0x09b|
|000035b0| 36 34 63 32 62 2c 20 30 | 78 37 65 62 31 37 63 62 |64c2b, 0|x7eb17cb|
|000035c0| 64 2c 20 30 78 65 37 62 | 38 32 64 30 37 2c 20 30 |d, 0xe7b|82d07, 0|
|000035d0| 78 39 30 62 66 31 64 39 | 31 2c 0a 30 78 31 64 62 |x90bf1d9|1,.0x1db|
|000035e0| 37 31 30 36 34 2c 20 30 | 78 36 61 62 30 32 30 66 |71064, 0|x6ab020f|
|000035f0| 32 2c 20 30 78 66 33 62 | 39 37 31 34 38 2c 20 30 |2, 0xf3b|97148, 0|
|00003600| 78 38 34 62 65 34 31 64 | 65 2c 20 30 78 31 61 64 |x84be41d|e, 0x1ad|
|00003610| 61 64 34 37 64 2c 20 30 | 78 36 64 64 64 65 34 65 |ad47d, 0|x6ddde4e|
|00003620| 62 2c 20 30 78 66 34 64 | 34 62 35 35 31 2c 20 30 |b, 0xf4d|4b551, 0|
|00003630| 78 38 33 64 33 38 35 63 | 37 2c 0a 30 78 31 33 36 |x83d385c|7,.0x136|
|00003640| 63 39 38 35 36 2c 20 30 | 78 36 34 36 62 61 38 63 |c9856, 0|x646ba8c|
|00003650| 30 2c 20 30 78 66 64 36 | 32 66 39 37 61 2c 20 30 |0, 0xfd6|2f97a, 0|
|00003660| 78 38 61 36 35 63 39 65 | 63 2c 20 30 78 31 34 30 |x8a65c9e|c, 0x140|
|00003670| 31 35 63 34 66 2c 20 30 | 78 36 33 30 36 36 63 64 |15c4f, 0|x63066cd|
|00003680| 39 2c 20 30 78 66 61 30 | 66 33 64 36 33 2c 20 30 |9, 0xfa0|f3d63, 0|
|00003690| 78 38 64 30 38 30 64 66 | 35 2c 0a 30 78 33 62 36 |x8d080df|5,.0x3b6|
|000036a0| 65 32 30 63 38 2c 20 30 | 78 34 63 36 39 31 30 35 |e20c8, 0|x4c69105|
|000036b0| 65 2c 20 30 78 64 35 36 | 30 34 31 65 34 2c 20 30 |e, 0xd56|041e4, 0|
|000036c0| 78 61 32 36 37 37 31 37 | 32 2c 20 30 78 33 63 30 |xa267717|2, 0x3c0|
|000036d0| 33 65 34 64 31 2c 20 30 | 78 34 62 30 34 64 34 34 |3e4d1, 0|x4b04d44|
|000036e0| 37 2c 20 30 78 64 32 30 | 64 38 35 66 64 2c 20 30 |7, 0xd20|d85fd, 0|
|000036f0| 78 61 35 30 61 62 35 36 | 62 2c 0a 30 78 33 35 62 |xa50ab56|b,.0x35b|
|00003700| 35 61 38 66 61 2c 20 30 | 78 34 32 62 32 39 38 36 |5a8fa, 0|x42b2986|
|00003710| 63 2c 20 30 78 64 62 62 | 62 63 39 64 36 2c 20 30 |c, 0xdbb|bc9d6, 0|
|00003720| 78 61 63 62 63 66 39 34 | 30 2c 20 30 78 33 32 64 |xacbcf94|0, 0x32d|
|00003730| 38 36 63 65 33 2c 20 30 | 78 34 35 64 66 35 63 37 |86ce3, 0|x45df5c7|
|00003740| 35 2c 20 30 78 64 63 64 | 36 30 64 63 66 2c 20 30 |5, 0xdcd|60dcf, 0|
|00003750| 78 61 62 64 31 33 64 35 | 39 2c 0a 30 78 32 36 64 |xabd13d5|9,.0x26d|
|00003760| 39 33 30 61 63 2c 20 30 | 78 35 31 64 65 30 30 33 |930ac, 0|x51de003|
|00003770| 61 2c 20 30 78 63 38 64 | 37 35 31 38 30 2c 20 30 |a, 0xc8d|75180, 0|
|00003780| 78 62 66 64 30 36 31 31 | 36 2c 20 30 78 32 31 62 |xbfd0611|6, 0x21b|
|00003790| 34 66 34 62 35 2c 20 30 | 78 35 36 62 33 63 34 32 |4f4b5, 0|x56b3c42|
|000037a0| 33 2c 20 30 78 63 66 62 | 61 39 35 39 39 2c 20 30 |3, 0xcfb|a9599, 0|
|000037b0| 78 62 38 62 64 61 35 30 | 66 2c 0a 30 78 32 38 30 |xb8bda50|f,.0x280|
|000037c0| 32 62 38 39 65 2c 20 30 | 78 35 66 30 35 38 38 30 |2b89e, 0|x5f05880|
|000037d0| 38 2c 20 30 78 63 36 30 | 63 64 39 62 32 2c 20 30 |8, 0xc60|cd9b2, 0|
|000037e0| 78 62 31 30 62 65 39 32 | 34 2c 20 30 78 32 66 36 |xb10be92|4, 0x2f6|
|000037f0| 66 37 63 38 37 2c 20 30 | 78 35 38 36 38 34 63 31 |f7c87, 0|x58684c1|
|00003800| 31 2c 20 30 78 63 31 36 | 31 31 64 61 62 2c 20 30 |1, 0xc16|11dab, 0|
|00003810| 78 62 36 36 36 32 64 33 | 64 2c 0a 30 78 37 36 64 |xb6662d3|d,.0x76d|
|00003820| 63 34 31 39 30 2c 20 30 | 78 30 31 64 62 37 31 30 |c4190, 0|x01db710|
|00003830| 36 2c 20 30 78 39 38 64 | 32 32 30 62 63 2c 20 30 |6, 0x98d|220bc, 0|
|00003840| 78 65 66 64 35 31 30 32 | 61 2c 20 30 78 37 31 62 |xefd5102|a, 0x71b|
|00003850| 31 38 35 38 39 2c 20 30 | 78 30 36 62 36 62 35 31 |18589, 0|x06b6b51|
|00003860| 66 2c 20 30 78 39 66 62 | 66 65 34 61 35 2c 20 30 |f, 0x9fb|fe4a5, 0|
|00003870| 78 65 38 62 38 64 34 33 | 33 2c 0a 30 78 37 38 30 |xe8b8d43|3,.0x780|
|00003880| 37 63 39 61 32 2c 20 30 | 78 30 66 30 30 66 39 33 |7c9a2, 0|x0f00f93|
|00003890| 34 2c 20 30 78 39 36 30 | 39 61 38 38 65 2c 20 30 |4, 0x960|9a88e, 0|
|000038a0| 78 65 31 30 65 39 38 31 | 38 2c 20 30 78 37 66 36 |xe10e981|8, 0x7f6|
|000038b0| 61 30 64 62 62 2c 20 30 | 78 30 38 36 64 33 64 32 |a0dbb, 0|x086d3d2|
|000038c0| 64 2c 20 30 78 39 31 36 | 34 36 63 39 37 2c 20 30 |d, 0x916|46c97, 0|
|000038d0| 78 65 36 36 33 35 63 30 | 31 2c 0a 30 78 36 62 36 |xe6635c0|1,.0x6b6|
|000038e0| 62 35 31 66 34 2c 20 30 | 78 31 63 36 63 36 31 36 |b51f4, 0|x1c6c616|
|000038f0| 32 2c 20 30 78 38 35 36 | 35 33 30 64 38 2c 20 30 |2, 0x856|530d8, 0|
|00003900| 78 66 32 36 32 30 30 34 | 65 2c 20 30 78 36 63 30 |xf262004|e, 0x6c0|
|00003910| 36 39 35 65 64 2c 20 30 | 78 31 62 30 31 61 35 37 |695ed, 0|x1b01a57|
|00003920| 62 2c 20 30 78 38 32 30 | 38 66 34 63 31 2c 20 30 |b, 0x820|8f4c1, 0|
|00003930| 78 66 35 30 66 63 34 35 | 37 2c 0a 30 78 36 35 62 |xf50fc45|7,.0x65b|
|00003940| 30 64 39 63 36 2c 20 30 | 78 31 32 62 37 65 39 35 |0d9c6, 0|x12b7e95|
|00003950| 30 2c 20 30 78 38 62 62 | 65 62 38 65 61 2c 20 30 |0, 0x8bb|eb8ea, 0|
|00003960| 78 66 63 62 39 38 38 37 | 63 2c 20 30 78 36 32 64 |xfcb9887|c, 0x62d|
|00003970| 64 31 64 64 66 2c 20 30 | 78 31 35 64 61 32 64 34 |d1ddf, 0|x15da2d4|
|00003980| 39 2c 20 30 78 38 63 64 | 33 37 63 66 33 2c 20 30 |9, 0x8cd|37cf3, 0|
|00003990| 78 66 62 64 34 34 63 36 | 35 2c 0a 30 78 34 64 62 |xfbd44c6|5,.0x4db|
|000039a0| 32 36 31 35 38 2c 20 30 | 78 33 61 62 35 35 31 63 |26158, 0|x3ab551c|
|000039b0| 65 2c 20 30 78 61 33 62 | 63 30 30 37 34 2c 20 30 |e, 0xa3b|c0074, 0|
|000039c0| 78 64 34 62 62 33 30 65 | 32 2c 20 30 78 34 61 64 |xd4bb30e|2, 0x4ad|
|000039d0| 66 61 35 34 31 2c 20 30 | 78 33 64 64 38 39 35 64 |fa541, 0|x3dd895d|
|000039e0| 37 2c 20 30 78 61 34 64 | 31 63 34 36 64 2c 20 30 |7, 0xa4d|1c46d, 0|
|000039f0| 78 64 33 64 36 66 34 66 | 62 2c 0a 30 78 34 33 36 |xd3d6f4f|b,.0x436|
|00003a00| 39 65 39 36 61 2c 20 30 | 78 33 34 36 65 64 39 66 |9e96a, 0|x346ed9f|
|00003a10| 63 2c 20 30 78 61 64 36 | 37 38 38 34 36 2c 20 30 |c, 0xad6|78846, 0|
|00003a20| 78 64 61 36 30 62 38 64 | 30 2c 20 30 78 34 34 30 |xda60b8d|0, 0x440|
|00003a30| 34 32 64 37 33 2c 20 30 | 78 33 33 30 33 31 64 65 |42d73, 0|x33031de|
|00003a40| 35 2c 20 30 78 61 61 30 | 61 34 63 35 66 2c 20 30 |5, 0xaa0|a4c5f, 0|
|00003a50| 78 64 64 30 64 37 63 63 | 39 2c 0a 30 78 35 30 30 |xdd0d7cc|9,.0x500|
|00003a60| 35 37 31 33 63 2c 20 30 | 78 32 37 30 32 34 31 61 |5713c, 0|x270241a|
|00003a70| 61 2c 20 30 78 62 65 30 | 62 31 30 31 30 2c 20 30 |a, 0xbe0|b1010, 0|
|00003a80| 78 63 39 30 63 32 30 38 | 36 2c 20 30 78 35 37 36 |xc90c208|6, 0x576|
|00003a90| 38 62 35 32 35 2c 20 30 | 78 32 30 36 66 38 35 62 |8b525, 0|x206f85b|
|00003aa0| 33 2c 20 30 78 62 39 36 | 36 64 34 30 39 2c 20 30 |3, 0xb96|6d409, 0|
|00003ab0| 78 63 65 36 31 65 34 39 | 66 2c 0a 30 78 35 65 64 |xce61e49|f,.0x5ed|
|00003ac0| 65 66 39 30 65 2c 20 30 | 78 32 39 64 39 63 39 39 |ef90e, 0|x29d9c99|
|00003ad0| 38 2c 20 30 78 62 30 64 | 30 39 38 32 32 2c 20 30 |8, 0xb0d|09822, 0|
|00003ae0| 78 63 37 64 37 61 38 62 | 34 2c 20 30 78 35 39 62 |xc7d7a8b|4, 0x59b|
|00003af0| 33 33 64 31 37 2c 20 30 | 78 32 65 62 34 30 64 38 |33d17, 0|x2eb40d8|
|00003b00| 31 2c 20 30 78 62 37 62 | 64 35 63 33 62 2c 20 30 |1, 0xb7b|d5c3b, 0|
|00003b10| 78 63 30 62 61 36 63 61 | 64 2c 0a 30 78 65 64 62 |xc0ba6ca|d,.0xedb|
|00003b20| 38 38 33 32 30 2c 20 30 | 78 39 61 62 66 62 33 62 |88320, 0|x9abfb3b|
|00003b30| 36 2c 20 30 78 30 33 62 | 36 65 32 30 63 2c 20 30 |6, 0x03b|6e20c, 0|
|00003b40| 78 37 34 62 31 64 32 39 | 61 2c 20 30 78 65 61 64 |x74b1d29|a, 0xead|
|00003b50| 35 34 37 33 39 2c 20 30 | 78 39 64 64 32 37 37 61 |54739, 0|x9dd277a|
|00003b60| 66 2c 20 30 78 30 34 64 | 62 32 36 31 35 2c 20 30 |f, 0x04d|b2615, 0|
|00003b70| 78 37 33 64 63 31 36 38 | 33 2c 0a 30 78 65 33 36 |x73dc168|3,.0xe36|
|00003b80| 33 30 62 31 32 2c 20 30 | 78 39 34 36 34 33 62 38 |30b12, 0|x94643b8|
|00003b90| 34 2c 20 30 78 30 64 36 | 64 36 61 33 65 2c 20 30 |4, 0x0d6|d6a3e, 0|
|00003ba0| 78 37 61 36 61 35 61 61 | 38 2c 20 30 78 65 34 30 |x7a6a5aa|8, 0xe40|
|00003bb0| 65 63 66 30 62 2c 20 30 | 78 39 33 30 39 66 66 39 |ecf0b, 0|x9309ff9|
|00003bc0| 64 2c 20 30 78 30 61 30 | 30 61 65 32 37 2c 20 30 |d, 0x0a0|0ae27, 0|
|00003bd0| 78 37 64 30 37 39 65 62 | 31 2c 0a 30 78 66 30 30 |x7d079eb|1,.0xf00|
|00003be0| 66 39 33 34 34 2c 20 30 | 78 38 37 30 38 61 33 64 |f9344, 0|x8708a3d|
|00003bf0| 32 2c 20 30 78 31 65 30 | 31 66 32 36 38 2c 20 30 |2, 0x1e0|1f268, 0|
|00003c00| 78 36 39 30 36 63 32 66 | 65 2c 20 30 78 66 37 36 |x6906c2f|e, 0xf76|
|00003c10| 32 35 37 35 64 2c 20 30 | 78 38 30 36 35 36 37 63 |2575d, 0|x806567c|
|00003c20| 62 2c 20 30 78 31 39 36 | 63 33 36 37 31 2c 20 30 |b, 0x196|c3671, 0|
|00003c30| 78 36 65 36 62 30 36 65 | 37 2c 0a 30 78 66 65 64 |x6e6b06e|7,.0xfed|
|00003c40| 34 31 62 37 36 2c 20 30 | 78 38 39 64 33 32 62 65 |41b76, 0|x89d32be|
|00003c50| 30 2c 20 30 78 31 30 64 | 61 37 61 35 61 2c 20 30 |0, 0x10d|a7a5a, 0|
|00003c60| 78 36 37 64 64 34 61 63 | 63 2c 20 30 78 66 39 62 |x67dd4ac|c, 0xf9b|
|00003c70| 39 64 66 36 66 2c 20 30 | 78 38 65 62 65 65 66 66 |9df6f, 0|x8ebeeff|
|00003c80| 39 2c 20 30 78 31 37 62 | 37 62 65 34 33 2c 20 30 |9, 0x17b|7be43, 0|
|00003c90| 78 36 30 62 30 38 65 64 | 35 2c 0a 30 78 64 36 64 |x60b08ed|5,.0xd6d|
|00003ca0| 36 61 33 65 38 2c 20 30 | 78 61 31 64 31 39 33 37 |6a3e8, 0|xa1d1937|
|00003cb0| 65 2c 20 30 78 33 38 64 | 38 63 32 63 34 2c 20 30 |e, 0x38d|8c2c4, 0|
|00003cc0| 78 34 66 64 66 66 32 35 | 32 2c 20 30 78 64 31 62 |x4fdff25|2, 0xd1b|
|00003cd0| 62 36 37 66 31 2c 20 30 | 78 61 36 62 63 35 37 36 |b67f1, 0|xa6bc576|
|00003ce0| 37 2c 20 30 78 33 66 62 | 35 30 36 64 64 2c 20 30 |7, 0x3fb|506dd, 0|
|00003cf0| 78 34 38 62 32 33 36 34 | 62 2c 0a 30 78 64 38 30 |x48b2364|b,.0xd80|
|00003d00| 64 32 62 64 61 2c 20 30 | 78 61 66 30 61 31 62 34 |d2bda, 0|xaf0a1b4|
|00003d10| 63 2c 20 30 78 33 36 30 | 33 34 61 66 36 2c 20 30 |c, 0x360|34af6, 0|
|00003d20| 78 34 31 30 34 37 61 36 | 30 2c 20 30 78 64 66 36 |x41047a6|0, 0xdf6|
|00003d30| 30 65 66 63 33 2c 20 30 | 78 61 38 36 37 64 66 35 |0efc3, 0|xa867df5|
|00003d40| 35 2c 20 30 78 33 31 36 | 65 38 65 65 66 2c 20 30 |5, 0x316|e8eef, 0|
|00003d50| 78 34 36 36 39 62 65 37 | 39 2c 0a 30 78 63 62 36 |x4669be7|9,.0xcb6|
|00003d60| 31 62 33 38 63 2c 20 30 | 78 62 63 36 36 38 33 31 |1b38c, 0|xbc66831|
|00003d70| 61 2c 20 30 78 32 35 36 | 66 64 32 61 30 2c 20 30 |a, 0x256|fd2a0, 0|
|00003d80| 78 35 32 36 38 65 32 33 | 36 2c 20 30 78 63 63 30 |x5268e23|6, 0xcc0|
|00003d90| 63 37 37 39 35 2c 20 30 | 78 62 62 30 62 34 37 30 |c7795, 0|xbb0b470|
|00003da0| 33 2c 20 30 78 32 32 30 | 32 31 36 62 39 2c 20 30 |3, 0x220|216b9, 0|
|00003db0| 78 35 35 30 35 32 36 32 | 66 2c 0a 30 78 63 35 62 |x5505262|f,.0xc5b|
|00003dc0| 61 33 62 62 65 2c 20 30 | 78 62 32 62 64 30 62 32 |a3bbe, 0|xb2bd0b2|
|00003dd0| 38 2c 20 30 78 32 62 62 | 34 35 61 39 32 2c 20 30 |8, 0x2bb|45a92, 0|
|00003de0| 78 35 63 62 33 36 61 30 | 34 2c 20 30 78 63 32 64 |x5cb36a0|4, 0xc2d|
|00003df0| 37 66 66 61 37 2c 20 30 | 78 62 35 64 30 63 66 33 |7ffa7, 0|xb5d0cf3|
|00003e00| 31 2c 20 30 78 32 63 64 | 39 39 65 38 62 2c 20 30 |1, 0x2cd|99e8b, 0|
|00003e10| 78 35 62 64 65 61 65 31 | 64 2c 0a 30 78 39 62 36 |x5bdeae1|d,.0x9b6|
|00003e20| 34 63 32 62 30 2c 20 30 | 78 65 63 36 33 66 32 32 |4c2b0, 0|xec63f22|
|00003e30| 36 2c 20 30 78 37 35 36 | 61 61 33 39 63 2c 20 30 |6, 0x756|aa39c, 0|
|00003e40| 78 30 32 36 64 39 33 30 | 61 2c 20 30 78 39 63 30 |x026d930|a, 0x9c0|
|00003e50| 39 30 36 61 39 2c 20 30 | 78 65 62 30 65 33 36 33 |906a9, 0|xeb0e363|
|00003e60| 66 2c 20 30 78 37 32 30 | 37 36 37 38 35 2c 20 30 |f, 0x720|76785, 0|
|00003e70| 78 30 35 30 30 35 37 31 | 33 2c 0a 30 78 39 35 62 |x0500571|3,.0x95b|
|00003e80| 66 34 61 38 32 2c 20 30 | 78 65 32 62 38 37 61 31 |f4a82, 0|xe2b87a1|
|00003e90| 34 2c 20 30 78 37 62 62 | 31 32 62 61 65 2c 20 30 |4, 0x7bb|12bae, 0|
|00003ea0| 78 30 63 62 36 31 62 33 | 38 2c 20 30 78 39 32 64 |x0cb61b3|8, 0x92d|
|00003eb0| 32 38 65 39 62 2c 20 30 | 78 65 35 64 35 62 65 30 |28e9b, 0|xe5d5be0|
|00003ec0| 64 2c 20 30 78 37 63 64 | 63 65 66 62 37 2c 20 30 |d, 0x7cd|cefb7, 0|
|00003ed0| 78 30 62 64 62 64 66 32 | 31 2c 0a 30 78 38 36 64 |x0bdbdf2|1,.0x86d|
|00003ee0| 33 64 32 64 34 2c 20 30 | 78 66 31 64 34 65 32 34 |3d2d4, 0|xf1d4e24|
|00003ef0| 32 2c 20 30 78 36 38 64 | 64 62 33 66 38 2c 20 30 |2, 0x68d|db3f8, 0|
|00003f00| 78 31 66 64 61 38 33 36 | 65 2c 20 30 78 38 31 62 |x1fda836|e, 0x81b|
|00003f10| 65 31 36 63 64 2c 20 30 | 78 66 36 62 39 32 36 35 |e16cd, 0|xf6b9265|
|00003f20| 62 2c 20 30 78 36 66 62 | 30 37 37 65 31 2c 20 30 |b, 0x6fb|077e1, 0|
|00003f30| 78 31 38 62 37 34 37 37 | 37 2c 0a 30 78 38 38 30 |x18b7477|7,.0x880|
|00003f40| 38 35 61 65 36 2c 20 30 | 78 66 66 30 66 36 61 37 |85ae6, 0|xff0f6a7|
|00003f50| 30 2c 20 30 78 36 36 30 | 36 33 62 63 61 2c 20 30 |0, 0x660|63bca, 0|
|00003f60| 78 31 31 30 31 30 62 35 | 63 2c 20 30 78 38 66 36 |x11010b5|c, 0x8f6|
|00003f70| 35 39 65 66 66 2c 20 30 | 78 66 38 36 32 61 65 36 |59eff, 0|xf862ae6|
|00003f80| 39 2c 20 30 78 36 31 36 | 62 66 66 64 33 2c 20 30 |9, 0x616|bffd3, 0|
|00003f90| 78 31 36 36 63 63 66 34 | 35 2c 0a 30 78 61 30 30 |x166ccf4|5,.0xa00|
|00003fa0| 61 65 32 37 38 2c 20 30 | 78 64 37 30 64 64 32 65 |ae278, 0|xd70dd2e|
|00003fb0| 65 2c 20 30 78 34 65 30 | 34 38 33 35 34 2c 20 30 |e, 0x4e0|48354, 0|
|00003fc0| 78 33 39 30 33 62 33 63 | 32 2c 20 30 78 61 37 36 |x3903b3c|2, 0xa76|
|00003fd0| 37 32 36 36 31 2c 20 30 | 78 64 30 36 30 31 36 66 |72661, 0|xd06016f|
|00003fe0| 37 2c 20 30 78 34 39 36 | 39 34 37 34 64 2c 20 30 |7, 0x496|9474d, 0|
|00003ff0| 78 33 65 36 65 37 37 64 | 62 2c 0a 30 78 61 65 64 |x3e6e77d|b,.0xaed|
|00004000| 31 36 61 34 61 2c 20 30 | 78 64 39 64 36 35 61 64 |16a4a, 0|xd9d65ad|
|00004010| 63 2c 20 30 78 34 30 64 | 66 30 62 36 36 2c 20 30 |c, 0x40d|f0b66, 0|
|00004020| 78 33 37 64 38 33 62 66 | 30 2c 20 30 78 61 39 62 |x37d83bf|0, 0xa9b|
|00004030| 63 61 65 35 33 2c 20 30 | 78 64 65 62 62 39 65 63 |cae53, 0|xdebb9ec|
|00004040| 35 2c 20 30 78 34 37 62 | 32 63 66 37 66 2c 20 30 |5, 0x47b|2cf7f, 0|
|00004050| 78 33 30 62 35 66 66 65 | 39 2c 0a 30 78 62 64 62 |x30b5ffe|9,.0xbdb|
|00004060| 64 66 32 31 63 2c 20 30 | 78 63 61 62 61 63 32 38 |df21c, 0|xcabac28|
|00004070| 61 2c 20 30 78 35 33 62 | 33 39 33 33 30 2c 20 30 |a, 0x53b|39330, 0|
|00004080| 78 32 34 62 34 61 33 61 | 36 2c 20 30 78 62 61 64 |x24b4a3a|6, 0xbad|
|00004090| 30 33 36 30 35 2c 20 30 | 78 63 64 64 37 30 36 39 |03605, 0|xcdd7069|
|000040a0| 33 2c 20 30 78 35 34 64 | 65 35 37 32 39 2c 20 30 |3, 0x54d|e5729, 0|
|000040b0| 78 32 33 64 39 36 37 62 | 66 2c 0a 30 78 62 33 36 |x23d967b|f,.0xb36|
|000040c0| 36 37 61 32 65 2c 20 30 | 78 63 34 36 31 34 61 62 |67a2e, 0|xc4614ab|
|000040d0| 38 2c 20 30 78 35 64 36 | 38 31 62 30 32 2c 20 30 |8, 0x5d6|81b02, 0|
|000040e0| 78 32 61 36 66 32 62 39 | 34 2c 20 30 78 62 34 30 |x2a6f2b9|4, 0xb40|
|000040f0| 62 62 65 33 37 2c 20 30 | 78 63 33 30 63 38 65 61 |bbe37, 0|xc30c8ea|
|00004100| 31 2c 20 30 78 35 61 30 | 35 64 66 31 62 2c 20 30 |1, 0x5a0|5df1b, 0|
|00004110| 78 32 64 30 32 65 66 38 | 64 0a 7d 3b 0a 0a 23 64 |x2d02ef8|d.};..#d|
|00004120| 65 66 69 6e 65 20 55 50 | 44 43 33 32 28 6f 63 74 |efine UP|DC32(oct|
|00004130| 65 74 2c 20 63 72 63 29 | 20 28 63 72 63 5f 33 32 |et, crc)| (crc_32|
|00004140| 5f 74 61 62 5b 28 28 63 | 72 63 29 20 5e 20 28 6f |_tab[((c|rc) ^ (o|
|00004150| 63 74 65 74 29 29 20 26 | 20 30 78 66 66 5d 20 5e |ctet)) &| 0xff] ^|
|00004160| 20 28 28 63 72 63 29 20 | 3e 3e 20 38 29 29 0a 0a | ((crc) |>> 8))..|
|00004170| 6d 61 69 6e 28 61 72 67 | 63 2c 20 61 72 67 70 29 |main(arg|c, argp)|
|00004180| 0a 63 68 61 72 20 2a 2a | 61 72 67 70 3b 0a 7b 0a |.char **|argp;.{.|
|00004190| 09 72 65 67 69 73 74 65 | 72 20 65 72 72 6f 72 73 |.registe|r errors|
|000041a0| 20 3d 20 30 3b 0a 0a 09 | 77 68 69 6c 65 28 20 2d | = 0;...|while( -|
|000041b0| 2d 61 72 67 63 20 3e 20 | 30 29 0a 09 09 65 72 72 |-argc > |0)...err|
|000041c0| 6f 72 73 20 7c 3d 20 63 | 72 63 33 32 66 69 6c 65 |ors |= c|rc32file|
|000041d0| 28 20 2a 2b 2b 61 72 67 | 70 29 3b 0a 09 65 78 69 |( *++arg|p);..exi|
|000041e0| 74 28 65 72 72 6f 72 73 | 20 21 3d 20 30 29 3b 0a |t(errors| != 0);.|
|000041f0| 7d 0a 0a 63 72 63 33 32 | 66 69 6c 65 28 6e 61 6d |}..crc32|file(nam|
|00004200| 65 29 0a 63 68 61 72 20 | 2a 6e 61 6d 65 3b 0a 7b |e).char |*name;.{|
|00004210| 0a 09 72 65 67 69 73 74 | 65 72 20 46 49 4c 45 20 |..regist|er FILE |
|00004220| 2a 66 69 6e 3b 0a 09 72 | 65 67 69 73 74 65 72 20 |*fin;..r|egister |
|00004230| 75 6e 73 69 67 6e 65 64 | 20 6c 6f 6e 67 20 6f 6c |unsigned| long ol|
|00004240| 64 63 72 63 33 32 3b 0a | 09 72 65 67 69 73 74 65 |dcrc32;.|.registe|
|00004250| 72 20 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 20 |r unsign|ed long |
|00004260| 63 72 63 33 32 3b 0a 09 | 72 65 67 69 73 74 65 72 |crc32;..|register|
|00004270| 20 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 20 6f | unsigne|d long o|
|00004280| 6c 64 63 72 63 3b 0a 09 | 72 65 67 69 73 74 65 72 |ldcrc;..|register|
|00004290| 20 63 3b 0a 09 72 65 67 | 69 73 74 65 72 20 6c 6f | c;..reg|ister lo|
|000042a0| 6e 67 20 63 68 61 72 63 | 6e 74 3b 0a 0a 09 6f 6c |ng charc|nt;...ol|
|000042b0| 64 63 72 63 33 32 20 3d | 20 30 78 46 46 46 46 46 |dcrc32 =| 0xFFFFF|
|000042c0| 46 46 46 3b 20 63 68 61 | 72 63 6e 74 20 3d 20 30 |FFF; cha|rcnt = 0|
|000042d0| 3b 0a 23 69 66 64 65 66 | 20 4d 5f 49 38 36 53 4d |;.#ifdef| M_I86SM|
|000042e0| 0a 09 69 66 20 28 28 66 | 69 6e 3d 66 6f 70 65 6e |..if ((f|in=fopen|
|000042f0| 28 6e 61 6d 65 2c 20 22 | 72 62 22 29 29 3d 3d 4e |(name, "|rb"))==N|
|00004300| 55 4c 4c 29 0a 23 65 6c | 73 65 0a 09 69 66 20 28 |ULL).#el|se..if (|
|00004310| 28 66 69 6e 3d 66 6f 70 | 65 6e 28 6e 61 6d 65 2c |(fin=fop|en(name,|
|00004320| 20 22 72 22 29 29 3d 3d | 4e 55 4c 4c 29 0a 23 65 | "r"))==|NULL).#e|
|00004330| 6e 64 69 66 0a 09 7b 0a | 09 09 70 65 72 72 6f 72 |ndif..{.|..perror|
|00004340| 28 6e 61 6d 65 29 3b 0a | 09 09 72 65 74 75 72 6e |(name);.|..return|
|00004350| 20 45 52 52 4f 52 3b 0a | 09 7d 0a 09 77 68 69 6c | ERROR;.|.}..whil|
|00004360| 65 20 28 28 63 3d 67 65 | 74 63 28 66 69 6e 29 29 |e ((c=ge|tc(fin))|
|00004370| 21 3d 45 4f 46 29 20 7b | 0a 09 09 2b 2b 63 68 61 |!=EOF) {|...++cha|
|00004380| 72 63 6e 74 3b 0a 09 09 | 6f 6c 64 63 72 63 33 32 |rcnt;...|oldcrc32|
|00004390| 20 3d 20 55 50 44 43 33 | 32 28 63 2c 20 6f 6c 64 | = UPDC3|2(c, old|
|000043a0| 63 72 63 33 32 29 3b 0a | 09 7d 0a 0a 09 69 66 20 |crc32);.|.}...if |
|000043b0| 28 66 65 72 72 6f 72 28 | 66 69 6e 29 29 20 7b 0a |(ferror(|fin)) {.|
|000043c0| 09 09 70 65 72 72 6f 72 | 28 6e 61 6d 65 29 3b 0a |..perror|(name);.|
|000043d0| 09 09 63 68 61 72 63 6e | 74 20 3d 20 2d 31 3b 0a |..charcn|t = -1;.|
|000043e0| 09 7d 0a 09 66 63 6c 6f | 73 65 28 66 69 6e 29 3b |.}..fclo|se(fin);|
|000043f0| 0a 0a 09 63 72 63 33 32 | 20 3d 20 6f 6c 64 63 72 |...crc32| = oldcr|
|00004400| 63 33 32 3b 20 20 6f 6c | 64 63 72 63 20 3d 20 6f |c32; ol|dcrc = o|
|00004410| 6c 64 63 72 63 33 32 20 | 3d 20 7e 6f 6c 64 63 72 |ldcrc32 |= ~oldcr|
|00004420| 63 33 32 3b 0a 0a 2f 2a | 0a 09 63 72 63 33 32 20 |c32;../*|..crc32 |
|00004430| 3d 20 55 50 44 43 33 32 | 28 28 6f 6c 64 63 72 63 |= UPDC32|((oldcrc|
|00004440| 33 32 20 26 20 30 33 37 | 37 29 2c 20 63 72 63 33 |32 & 037|7), crc3|
|00004450| 32 29 3b 20 20 6f 6c 64 | 63 72 63 33 32 20 3e 3e |2); old|crc32 >>|
|00004460| 3d 38 3b 0a 09 63 72 63 | 33 32 20 3d 20 55 50 44 |=8;..crc|32 = UPD|
|00004470| 43 33 32 28 28 6f 6c 64 | 63 72 63 33 32 20 26 20 |C32((old|crc32 & |
|00004480| 30 33 37 37 29 2c 20 63 | 72 63 33 32 29 3b 20 20 |0377), c|rc32); |
|00004490| 6f 6c 64 63 72 63 33 32 | 20 3e 3e 3d 38 3b 0a 09 |oldcrc32| >>=8;..|
|000044a0| 63 72 63 33 32 20 3d 20 | 55 50 44 43 33 32 28 28 |crc32 = |UPDC32((|
|000044b0| 6f 6c 64 63 72 63 33 32 | 20 26 20 30 33 37 37 29 |oldcrc32| & 0377)|
|000044c0| 2c 20 63 72 63 33 32 29 | 3b 20 20 6f 6c 64 63 72 |, crc32)|; oldcr|
|000044d0| 63 33 32 20 3e 3e 3d 38 | 3b 0a 09 63 72 63 33 32 |c32 >>=8|;..crc32|
|000044e0| 20 3d 20 55 50 44 43 33 | 32 28 28 6f 6c 64 63 72 | = UPDC3|2((oldcr|
|000044f0| 63 33 32 20 26 20 30 33 | 37 37 29 2c 20 63 72 63 |c32 & 03|77), crc|
|00004500| 33 32 29 3b 20 20 6f 6c | 64 63 72 63 33 32 20 3e |32); ol|dcrc32 >|
|00004510| 3e 3d 38 3b 0a 09 70 72 | 69 6e 74 66 28 22 25 30 |>=8;..pr|intf("%0|
|00004520| 38 6c 58 20 22 2c 20 63 | 72 63 33 32 29 3b 0a 2a |8lX ", c|rc32);.*|
|00004530| 2f 0a 0a 09 70 72 69 6e | 74 66 28 22 25 30 38 6c |/...prin|tf("%08l|
|00004540| 58 20 25 37 6c 64 20 25 | 73 5c 6e 22 2c 20 6f 6c |X %7ld %|s\n", ol|
|00004550| 64 63 72 63 2c 20 63 68 | 61 72 63 6e 74 2c 20 6e |dcrc, ch|arcnt, n|
|00004560| 61 6d 65 29 3b 0a 0a 09 | 72 65 74 75 72 6e 20 4f |ame);...|return O|
|00004570| 4b 3b 0a 7d 0a 0a 00 00 | 00 00 00 00 00 00 00 00 |K;.}....|........|
|00004580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004600| 63 72 63 74 61 62 2e 63 | 00 00 00 00 00 00 00 00 |crctab.c|........|
|00004610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004660| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 33 |.... 6|44 . 3|
|00004670| 36 30 20 00 20 20 20 20 | 33 31 20 00 20 20 20 20 |60 . |31 . |
|00004680| 20 20 32 31 30 34 31 20 | 20 34 32 32 35 36 31 30 | 21041 | 4225610|
|00004690| 34 33 36 20 20 20 35 35 | 32 34 00 20 00 00 00 00 |436 55|24. ....|
|000046a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004800| 2f 2a 0a 20 2a 20 20 43 | 72 63 20 63 61 6c 63 75 |/*. * C|rc calcu|
|00004810| 6c 61 74 69 6f 6e 20 73 | 74 75 66 66 0a 20 2a 2f |lation s|tuff. */|
|00004820| 0a 0a 2f 2a 20 63 72 63 | 74 61 62 20 63 61 6c 63 |../* crc|tab calc|
|00004830| 75 6c 61 74 65 64 20 62 | 79 20 4d 61 72 6b 20 47 |ulated b|y Mark G|
|00004840| 2e 20 4d 65 6e 64 65 6c | 2c 20 4e 65 74 77 6f 72 |. Mendel|, Networ|
|00004850| 6b 20 53 79 73 74 65 6d | 73 20 43 6f 72 70 6f 72 |k System|s Corpor|
|00004860| 61 74 69 6f 6e 20 2a 2f | 0a 73 74 61 74 69 63 20 |ation */|.static |
|00004870| 75 6e 73 69 67 6e 65 64 | 20 73 68 6f 72 74 20 63 |unsigned| short c|
|00004880| 72 63 74 61 62 5b 32 35 | 36 5d 20 3d 20 7b 0a 20 |rctab[25|6] = {. |
|00004890| 20 20 20 30 78 30 30 30 | 30 2c 20 20 30 78 31 30 | 0x000|0, 0x10|
|000048a0| 32 31 2c 20 20 30 78 32 | 30 34 32 2c 20 20 30 78 |21, 0x2|042, 0x|
|000048b0| 33 30 36 33 2c 20 20 30 | 78 34 30 38 34 2c 20 20 |3063, 0|x4084, |
|000048c0| 30 78 35 30 61 35 2c 20 | 20 30 78 36 30 63 36 2c |0x50a5, | 0x60c6,|
|000048d0| 20 20 30 78 37 30 65 37 | 2c 0a 20 20 20 20 30 78 | 0x70e7|,. 0x|
|000048e0| 38 31 30 38 2c 20 20 30 | 78 39 31 32 39 2c 20 20 |8108, 0|x9129, |
|000048f0| 30 78 61 31 34 61 2c 20 | 20 30 78 62 31 36 62 2c |0xa14a, | 0xb16b,|
|00004900| 20 20 30 78 63 31 38 63 | 2c 20 20 30 78 64 31 61 | 0xc18c|, 0xd1a|
|00004910| 64 2c 20 20 30 78 65 31 | 63 65 2c 20 20 30 78 66 |d, 0xe1|ce, 0xf|
|00004920| 31 65 66 2c 0a 20 20 20 | 20 30 78 31 32 33 31 2c |1ef,. | 0x1231,|
|00004930| 20 20 30 78 30 32 31 30 | 2c 20 20 30 78 33 32 37 | 0x0210|, 0x327|
|00004940| 33 2c 20 20 30 78 32 32 | 35 32 2c 20 20 30 78 35 |3, 0x22|52, 0x5|
|00004950| 32 62 35 2c 20 20 30 78 | 34 32 39 34 2c 20 20 30 |2b5, 0x|4294, 0|
|00004960| 78 37 32 66 37 2c 20 20 | 30 78 36 32 64 36 2c 0a |x72f7, |0x62d6,.|
|00004970| 20 20 20 20 30 78 39 33 | 33 39 2c 20 20 30 78 38 | 0x93|39, 0x8|
|00004980| 33 31 38 2c 20 20 30 78 | 62 33 37 62 2c 20 20 30 |318, 0x|b37b, 0|
|00004990| 78 61 33 35 61 2c 20 20 | 30 78 64 33 62 64 2c 20 |xa35a, |0xd3bd, |
|000049a0| 20 30 78 63 33 39 63 2c | 20 20 30 78 66 33 66 66 | 0xc39c,| 0xf3ff|
|000049b0| 2c 20 20 30 78 65 33 64 | 65 2c 0a 20 20 20 20 30 |, 0xe3d|e,. 0|
|000049c0| 78 32 34 36 32 2c 20 20 | 30 78 33 34 34 33 2c 20 |x2462, |0x3443, |
|000049d0| 20 30 78 30 34 32 30 2c | 20 20 30 78 31 34 30 31 | 0x0420,| 0x1401|
|000049e0| 2c 20 20 30 78 36 34 65 | 36 2c 20 20 30 78 37 34 |, 0x64e|6, 0x74|
|000049f0| 63 37 2c 20 20 30 78 34 | 34 61 34 2c 20 20 30 78 |c7, 0x4|4a4, 0x|
|00004a00| 35 34 38 35 2c 0a 20 20 | 20 20 30 78 61 35 36 61 |5485,. | 0xa56a|
|00004a10| 2c 20 20 30 78 62 35 34 | 62 2c 20 20 30 78 38 35 |, 0xb54|b, 0x85|
|00004a20| 32 38 2c 20 20 30 78 39 | 35 30 39 2c 20 20 30 78 |28, 0x9|509, 0x|
|00004a30| 65 35 65 65 2c 20 20 30 | 78 66 35 63 66 2c 20 20 |e5ee, 0|xf5cf, |
|00004a40| 30 78 63 35 61 63 2c 20 | 20 30 78 64 35 38 64 2c |0xc5ac, | 0xd58d,|
|00004a50| 0a 20 20 20 20 30 78 33 | 36 35 33 2c 20 20 30 78 |. 0x3|653, 0x|
|00004a60| 32 36 37 32 2c 20 20 30 | 78 31 36 31 31 2c 20 20 |2672, 0|x1611, |
|00004a70| 30 78 30 36 33 30 2c 20 | 20 30 78 37 36 64 37 2c |0x0630, | 0x76d7,|
|00004a80| 20 20 30 78 36 36 66 36 | 2c 20 20 30 78 35 36 39 | 0x66f6|, 0x569|
|00004a90| 35 2c 20 20 30 78 34 36 | 62 34 2c 0a 20 20 20 20 |5, 0x46|b4,. |
|00004aa0| 30 78 62 37 35 62 2c 20 | 20 30 78 61 37 37 61 2c |0xb75b, | 0xa77a,|
|00004ab0| 20 20 30 78 39 37 31 39 | 2c 20 20 30 78 38 37 33 | 0x9719|, 0x873|
|00004ac0| 38 2c 20 20 30 78 66 37 | 64 66 2c 20 20 30 78 65 |8, 0xf7|df, 0xe|
|00004ad0| 37 66 65 2c 20 20 30 78 | 64 37 39 64 2c 20 20 30 |7fe, 0x|d79d, 0|
|00004ae0| 78 63 37 62 63 2c 0a 20 | 20 20 20 30 78 34 38 63 |xc7bc,. | 0x48c|
|00004af0| 34 2c 20 20 30 78 35 38 | 65 35 2c 20 20 30 78 36 |4, 0x58|e5, 0x6|
|00004b00| 38 38 36 2c 20 20 30 78 | 37 38 61 37 2c 20 20 30 |886, 0x|78a7, 0|
|00004b10| 78 30 38 34 30 2c 20 20 | 30 78 31 38 36 31 2c 20 |x0840, |0x1861, |
|00004b20| 20 30 78 32 38 30 32 2c | 20 20 30 78 33 38 32 33 | 0x2802,| 0x3823|
|00004b30| 2c 0a 20 20 20 20 30 78 | 63 39 63 63 2c 20 20 30 |,. 0x|c9cc, 0|
|00004b40| 78 64 39 65 64 2c 20 20 | 30 78 65 39 38 65 2c 20 |xd9ed, |0xe98e, |
|00004b50| 20 30 78 66 39 61 66 2c | 20 20 30 78 38 39 34 38 | 0xf9af,| 0x8948|
|00004b60| 2c 20 20 30 78 39 39 36 | 39 2c 20 20 30 78 61 39 |, 0x996|9, 0xa9|
|00004b70| 30 61 2c 20 20 30 78 62 | 39 32 62 2c 0a 20 20 20 |0a, 0xb|92b,. |
|00004b80| 20 30 78 35 61 66 35 2c | 20 20 30 78 34 61 64 34 | 0x5af5,| 0x4ad4|
|00004b90| 2c 20 20 30 78 37 61 62 | 37 2c 20 20 30 78 36 61 |, 0x7ab|7, 0x6a|
|00004ba0| 39 36 2c 20 20 30 78 31 | 61 37 31 2c 20 20 30 78 |96, 0x1|a71, 0x|
|00004bb0| 30 61 35 30 2c 20 20 30 | 78 33 61 33 33 2c 20 20 |0a50, 0|x3a33, |
|00004bc0| 30 78 32 61 31 32 2c 0a | 20 20 20 20 30 78 64 62 |0x2a12,.| 0xdb|
|00004bd0| 66 64 2c 20 20 30 78 63 | 62 64 63 2c 20 20 30 78 |fd, 0xc|bdc, 0x|
|00004be0| 66 62 62 66 2c 20 20 30 | 78 65 62 39 65 2c 20 20 |fbbf, 0|xeb9e, |
|00004bf0| 30 78 39 62 37 39 2c 20 | 20 30 78 38 62 35 38 2c |0x9b79, | 0x8b58,|
|00004c00| 20 20 30 78 62 62 33 62 | 2c 20 20 30 78 61 62 31 | 0xbb3b|, 0xab1|
|00004c10| 61 2c 0a 20 20 20 20 30 | 78 36 63 61 36 2c 20 20 |a,. 0|x6ca6, |
|00004c20| 30 78 37 63 38 37 2c 20 | 20 30 78 34 63 65 34 2c |0x7c87, | 0x4ce4,|
|00004c30| 20 20 30 78 35 63 63 35 | 2c 20 20 30 78 32 63 32 | 0x5cc5|, 0x2c2|
|00004c40| 32 2c 20 20 30 78 33 63 | 30 33 2c 20 20 30 78 30 |2, 0x3c|03, 0x0|
|00004c50| 63 36 30 2c 20 20 30 78 | 31 63 34 31 2c 0a 20 20 |c60, 0x|1c41,. |
|00004c60| 20 20 30 78 65 64 61 65 | 2c 20 20 30 78 66 64 38 | 0xedae|, 0xfd8|
|00004c70| 66 2c 20 20 30 78 63 64 | 65 63 2c 20 20 30 78 64 |f, 0xcd|ec, 0xd|
|00004c80| 64 63 64 2c 20 20 30 78 | 61 64 32 61 2c 20 20 30 |dcd, 0x|ad2a, 0|
|00004c90| 78 62 64 30 62 2c 20 20 | 30 78 38 64 36 38 2c 20 |xbd0b, |0x8d68, |
|00004ca0| 20 30 78 39 64 34 39 2c | 0a 20 20 20 20 30 78 37 | 0x9d49,|. 0x7|
|00004cb0| 65 39 37 2c 20 20 30 78 | 36 65 62 36 2c 20 20 30 |e97, 0x|6eb6, 0|
|00004cc0| 78 35 65 64 35 2c 20 20 | 30 78 34 65 66 34 2c 20 |x5ed5, |0x4ef4, |
|00004cd0| 20 30 78 33 65 31 33 2c | 20 20 30 78 32 65 33 32 | 0x3e13,| 0x2e32|
|00004ce0| 2c 20 20 30 78 31 65 35 | 31 2c 20 20 30 78 30 65 |, 0x1e5|1, 0x0e|
|00004cf0| 37 30 2c 0a 20 20 20 20 | 30 78 66 66 39 66 2c 20 |70,. |0xff9f, |
|00004d00| 20 30 78 65 66 62 65 2c | 20 20 30 78 64 66 64 64 | 0xefbe,| 0xdfdd|
|00004d10| 2c 20 20 30 78 63 66 66 | 63 2c 20 20 30 78 62 66 |, 0xcff|c, 0xbf|
|00004d20| 31 62 2c 20 20 30 78 61 | 66 33 61 2c 20 20 30 78 |1b, 0xa|f3a, 0x|
|00004d30| 39 66 35 39 2c 20 20 30 | 78 38 66 37 38 2c 0a 20 |9f59, 0|x8f78,. |
|00004d40| 20 20 20 30 78 39 31 38 | 38 2c 20 20 30 78 38 31 | 0x918|8, 0x81|
|00004d50| 61 39 2c 20 20 30 78 62 | 31 63 61 2c 20 20 30 78 |a9, 0xb|1ca, 0x|
|00004d60| 61 31 65 62 2c 20 20 30 | 78 64 31 30 63 2c 20 20 |a1eb, 0|xd10c, |
|00004d70| 30 78 63 31 32 64 2c 20 | 20 30 78 66 31 34 65 2c |0xc12d, | 0xf14e,|
|00004d80| 20 20 30 78 65 31 36 66 | 2c 0a 20 20 20 20 30 78 | 0xe16f|,. 0x|
|00004d90| 31 30 38 30 2c 20 20 30 | 78 30 30 61 31 2c 20 20 |1080, 0|x00a1, |
|00004da0| 30 78 33 30 63 32 2c 20 | 20 30 78 32 30 65 33 2c |0x30c2, | 0x20e3,|
|00004db0| 20 20 30 78 35 30 30 34 | 2c 20 20 30 78 34 30 32 | 0x5004|, 0x402|
|00004dc0| 35 2c 20 20 30 78 37 30 | 34 36 2c 20 20 30 78 36 |5, 0x70|46, 0x6|
|00004dd0| 30 36 37 2c 0a 20 20 20 | 20 30 78 38 33 62 39 2c |067,. | 0x83b9,|
|00004de0| 20 20 30 78 39 33 39 38 | 2c 20 20 30 78 61 33 66 | 0x9398|, 0xa3f|
|00004df0| 62 2c 20 20 30 78 62 33 | 64 61 2c 20 20 30 78 63 |b, 0xb3|da, 0xc|
|00004e00| 33 33 64 2c 20 20 30 78 | 64 33 31 63 2c 20 20 30 |33d, 0x|d31c, 0|
|00004e10| 78 65 33 37 66 2c 20 20 | 30 78 66 33 35 65 2c 0a |xe37f, |0xf35e,.|
|00004e20| 20 20 20 20 30 78 30 32 | 62 31 2c 20 20 30 78 31 | 0x02|b1, 0x1|
|00004e30| 32 39 30 2c 20 20 30 78 | 32 32 66 33 2c 20 20 30 |290, 0x|22f3, 0|
|00004e40| 78 33 32 64 32 2c 20 20 | 30 78 34 32 33 35 2c 20 |x32d2, |0x4235, |
|00004e50| 20 30 78 35 32 31 34 2c | 20 20 30 78 36 32 37 37 | 0x5214,| 0x6277|
|00004e60| 2c 20 20 30 78 37 32 35 | 36 2c 0a 20 20 20 20 30 |, 0x725|6,. 0|
|00004e70| 78 62 35 65 61 2c 20 20 | 30 78 61 35 63 62 2c 20 |xb5ea, |0xa5cb, |
|00004e80| 20 30 78 39 35 61 38 2c | 20 20 30 78 38 35 38 39 | 0x95a8,| 0x8589|
|00004e90| 2c 20 20 30 78 66 35 36 | 65 2c 20 20 30 78 65 35 |, 0xf56|e, 0xe5|
|00004ea0| 34 66 2c 20 20 30 78 64 | 35 32 63 2c 20 20 30 78 |4f, 0xd|52c, 0x|
|00004eb0| 63 35 30 64 2c 0a 20 20 | 20 20 30 78 33 34 65 32 |c50d,. | 0x34e2|
|00004ec0| 2c 20 20 30 78 32 34 63 | 33 2c 20 20 30 78 31 34 |, 0x24c|3, 0x14|
|00004ed0| 61 30 2c 20 20 30 78 30 | 34 38 31 2c 20 20 30 78 |a0, 0x0|481, 0x|
|00004ee0| 37 34 36 36 2c 20 20 30 | 78 36 34 34 37 2c 20 20 |7466, 0|x6447, |
|00004ef0| 30 78 35 34 32 34 2c 20 | 20 30 78 34 34 30 35 2c |0x5424, | 0x4405,|
|00004f00| 0a 20 20 20 20 30 78 61 | 37 64 62 2c 20 20 30 78 |. 0xa|7db, 0x|
|00004f10| 62 37 66 61 2c 20 20 30 | 78 38 37 39 39 2c 20 20 |b7fa, 0|x8799, |
|00004f20| 30 78 39 37 62 38 2c 20 | 20 30 78 65 37 35 66 2c |0x97b8, | 0xe75f,|
|00004f30| 20 20 30 78 66 37 37 65 | 2c 20 20 30 78 63 37 31 | 0xf77e|, 0xc71|
|00004f40| 64 2c 20 20 30 78 64 37 | 33 63 2c 0a 20 20 20 20 |d, 0xd7|3c,. |
|00004f50| 30 78 32 36 64 33 2c 20 | 20 30 78 33 36 66 32 2c |0x26d3, | 0x36f2,|
|00004f60| 20 20 30 78 30 36 39 31 | 2c 20 20 30 78 31 36 62 | 0x0691|, 0x16b|
|00004f70| 30 2c 20 20 30 78 36 36 | 35 37 2c 20 20 30 78 37 |0, 0x66|57, 0x7|
|00004f80| 36 37 36 2c 20 20 30 78 | 34 36 31 35 2c 20 20 30 |676, 0x|4615, 0|
|00004f90| 78 35 36 33 34 2c 0a 20 | 20 20 20 30 78 64 39 34 |x5634,. | 0xd94|
|00004fa0| 63 2c 20 20 30 78 63 39 | 36 64 2c 20 20 30 78 66 |c, 0xc9|6d, 0xf|
|00004fb0| 39 30 65 2c 20 20 30 78 | 65 39 32 66 2c 20 20 30 |90e, 0x|e92f, 0|
|00004fc0| 78 39 39 63 38 2c 20 20 | 30 78 38 39 65 39 2c 20 |x99c8, |0x89e9, |
|00004fd0| 20 30 78 62 39 38 61 2c | 20 20 30 78 61 39 61 62 | 0xb98a,| 0xa9ab|
|00004fe0| 2c 0a 20 20 20 20 30 78 | 35 38 34 34 2c 20 20 30 |,. 0x|5844, 0|
|00004ff0| 78 34 38 36 35 2c 20 20 | 30 78 37 38 30 36 2c 20 |x4865, |0x7806, |
|00005000| 20 30 78 36 38 32 37 2c | 20 20 30 78 31 38 63 30 | 0x6827,| 0x18c0|
|00005010| 2c 20 20 30 78 30 38 65 | 31 2c 20 20 30 78 33 38 |, 0x08e|1, 0x38|
|00005020| 38 32 2c 20 20 30 78 32 | 38 61 33 2c 0a 20 20 20 |82, 0x2|8a3,. |
|00005030| 20 30 78 63 62 37 64 2c | 20 20 30 78 64 62 35 63 | 0xcb7d,| 0xdb5c|
|00005040| 2c 20 20 30 78 65 62 33 | 66 2c 20 20 30 78 66 62 |, 0xeb3|f, 0xfb|
|00005050| 31 65 2c 20 20 30 78 38 | 62 66 39 2c 20 20 30 78 |1e, 0x8|bf9, 0x|
|00005060| 39 62 64 38 2c 20 20 30 | 78 61 62 62 62 2c 20 20 |9bd8, 0|xabbb, |
|00005070| 30 78 62 62 39 61 2c 0a | 20 20 20 20 30 78 34 61 |0xbb9a,.| 0x4a|
|00005080| 37 35 2c 20 20 30 78 35 | 61 35 34 2c 20 20 30 78 |75, 0x5|a54, 0x|
|00005090| 36 61 33 37 2c 20 20 30 | 78 37 61 31 36 2c 20 20 |6a37, 0|x7a16, |
|000050a0| 30 78 30 61 66 31 2c 20 | 20 30 78 31 61 64 30 2c |0x0af1, | 0x1ad0,|
|000050b0| 20 20 30 78 32 61 62 33 | 2c 20 20 30 78 33 61 39 | 0x2ab3|, 0x3a9|
|000050c0| 32 2c 0a 20 20 20 20 30 | 78 66 64 32 65 2c 20 20 |2,. 0|xfd2e, |
|000050d0| 30 78 65 64 30 66 2c 20 | 20 30 78 64 64 36 63 2c |0xed0f, | 0xdd6c,|
|000050e0| 20 20 30 78 63 64 34 64 | 2c 20 20 30 78 62 64 61 | 0xcd4d|, 0xbda|
|000050f0| 61 2c 20 20 30 78 61 64 | 38 62 2c 20 20 30 78 39 |a, 0xad|8b, 0x9|
|00005100| 64 65 38 2c 20 20 30 78 | 38 64 63 39 2c 0a 20 20 |de8, 0x|8dc9,. |
|00005110| 20 20 30 78 37 63 32 36 | 2c 20 20 30 78 36 63 30 | 0x7c26|, 0x6c0|
|00005120| 37 2c 20 20 30 78 35 63 | 36 34 2c 20 20 30 78 34 |7, 0x5c|64, 0x4|
|00005130| 63 34 35 2c 20 20 30 78 | 33 63 61 32 2c 20 20 30 |c45, 0x|3ca2, 0|
|00005140| 78 32 63 38 33 2c 20 20 | 30 78 31 63 65 30 2c 20 |x2c83, |0x1ce0, |
|00005150| 20 30 78 30 63 63 31 2c | 0a 20 20 20 20 30 78 65 | 0x0cc1,|. 0xe|
|00005160| 66 31 66 2c 20 20 30 78 | 66 66 33 65 2c 20 20 30 |f1f, 0x|ff3e, 0|
|00005170| 78 63 66 35 64 2c 20 20 | 30 78 64 66 37 63 2c 20 |xcf5d, |0xdf7c, |
|00005180| 20 30 78 61 66 39 62 2c | 20 20 30 78 62 66 62 61 | 0xaf9b,| 0xbfba|
|00005190| 2c 20 20 30 78 38 66 64 | 39 2c 20 20 30 78 39 66 |, 0x8fd|9, 0x9f|
|000051a0| 66 38 2c 0a 20 20 20 20 | 30 78 36 65 31 37 2c 20 |f8,. |0x6e17, |
|000051b0| 20 30 78 37 65 33 36 2c | 20 20 30 78 34 65 35 35 | 0x7e36,| 0x4e55|
|000051c0| 2c 20 20 30 78 35 65 37 | 34 2c 20 20 30 78 32 65 |, 0x5e7|4, 0x2e|
|000051d0| 39 33 2c 20 20 30 78 33 | 65 62 32 2c 20 20 30 78 |93, 0x3|eb2, 0x|
|000051e0| 30 65 64 31 2c 20 20 30 | 78 31 65 66 30 0a 7d 3b |0ed1, 0|x1ef0.};|
|000051f0| 0a 0a 2f 2a 0a 20 2a 20 | 75 70 64 63 72 63 20 6d |../*. * |updcrc m|
|00005200| 61 63 72 6f 20 64 65 72 | 69 76 65 64 20 66 72 6f |acro der|ived fro|
|00005210| 6d 20 61 72 74 69 63 6c | 65 20 43 6f 70 79 72 69 |m articl|e Copyri|
|00005220| 67 68 74 20 28 43 29 20 | 31 39 38 36 20 53 74 65 |ght (C) |1986 Ste|
|00005230| 70 68 65 6e 20 53 61 74 | 63 68 65 6c 6c 2e 20 0a |phen Sat|chell. .|
|00005240| 20 2a 20 20 4e 4f 54 45 | 3a 20 46 69 72 73 74 20 | * NOTE|: First |
|00005250| 73 72 67 75 6d 65 6e 74 | 20 6d 75 73 74 20 62 65 |srgument| must be|
|00005260| 20 69 6e 20 72 61 6e 67 | 65 20 30 20 74 6f 20 32 | in rang|e 0 to 2|
|00005270| 35 35 2e 0a 20 2a 20 20 | 20 20 20 20 20 20 53 65 |55.. * | Se|
|00005280| 63 6f 6e 64 20 61 72 67 | 75 6d 65 6e 74 20 69 73 |cond arg|ument is|
|00005290| 20 72 65 66 65 72 65 6e | 63 65 64 20 74 77 69 63 | referen|ced twic|
|000052a0| 65 2e 0a 20 2a 20 0a 20 | 2a 20 50 72 6f 67 72 61 |e.. * . |* Progra|
|000052b0| 6d 6d 65 72 73 20 6d 61 | 79 20 69 6e 63 6f 72 70 |mmers ma|y incorp|
|000052c0| 6f 72 61 74 65 20 61 6e | 79 20 6f 72 20 61 6c 6c |orate an|y or all|
|000052d0| 20 63 6f 64 65 20 69 6e | 74 6f 20 74 68 65 69 72 | code in|to their|
|000052e0| 20 70 72 6f 67 72 61 6d | 73 2c 20 0a 20 2a 20 67 | program|s, . * g|
|000052f0| 69 76 69 6e 67 20 70 72 | 6f 70 65 72 20 63 72 65 |iving pr|oper cre|
|00005300| 64 69 74 20 77 69 74 68 | 69 6e 20 74 68 65 20 73 |dit with|in the s|
|00005310| 6f 75 72 63 65 2e 20 50 | 75 62 6c 69 63 61 74 69 |ource. P|ublicati|
|00005320| 6f 6e 20 6f 66 20 74 68 | 65 20 0a 20 2a 20 73 6f |on of th|e . * so|
|00005330| 75 72 63 65 20 72 6f 75 | 74 69 6e 65 73 20 69 73 |urce rou|tines is|
|00005340| 20 70 65 72 6d 69 74 74 | 65 64 20 73 6f 20 6c 6f | permitt|ed so lo|
|00005350| 6e 67 20 61 73 20 70 72 | 6f 70 65 72 20 63 72 65 |ng as pr|oper cre|
|00005360| 64 69 74 20 69 73 20 67 | 69 76 65 6e 20 0a 20 2a |dit is g|iven . *|
|00005370| 20 74 6f 20 53 74 65 70 | 68 65 6e 20 53 61 74 63 | to Step|hen Satc|
|00005380| 68 65 6c 6c 2c 20 53 61 | 74 63 68 65 6c 6c 20 45 |hell, Sa|tchell E|
|00005390| 76 61 6c 75 61 74 69 6f | 6e 73 20 61 6e 64 20 43 |valuatio|ns and C|
|000053a0| 68 75 63 6b 20 46 6f 72 | 73 62 65 72 67 2c 20 0a |huck For|sberg, .|
|000053b0| 20 2a 20 4f 6d 65 6e 20 | 54 65 63 68 6e 6f 6c 6f | * Omen |Technolo|
|000053c0| 67 79 2e 0a 20 2a 2f 0a | 0a 23 64 65 66 69 6e 65 |gy.. */.|.#define|
|000053d0| 20 75 70 64 63 72 63 28 | 63 70 2c 20 63 72 63 29 | updcrc(|cp, crc)|
|000053e0| 20 28 20 63 72 63 74 61 | 62 5b 28 28 63 72 63 20 | ( crcta|b[((crc |
|000053f0| 3e 3e 20 38 29 20 26 20 | 32 35 35 29 5d 20 5e 20 |>> 8) & |255)] ^ |
|00005400| 28 63 72 63 20 3c 3c 20 | 38 29 20 5e 20 63 70 29 |(crc << |8) ^ cp)|
|00005410| 0a 0a 2f 2a 0a 20 2a 20 | 43 6f 70 79 72 69 67 68 |../*. * |Copyrigh|
|00005420| 74 20 28 43 29 20 31 39 | 38 36 20 47 61 72 79 20 |t (C) 19|86 Gary |
|00005430| 53 2e 20 42 72 6f 77 6e | 2e 20 20 59 6f 75 20 6d |S. Brown|. You m|
|00005440| 61 79 20 75 73 65 20 74 | 68 69 73 20 70 72 6f 67 |ay use t|his prog|
|00005450| 72 61 6d 2c 20 6f 72 0a | 20 2a 20 63 6f 64 65 20 |ram, or.| * code |
|00005460| 6f 72 20 74 61 62 6c 65 | 73 20 65 78 74 72 61 63 |or table|s extrac|
|00005470| 74 65 64 20 66 72 6f 6d | 20 69 74 2c 20 61 73 20 |ted from| it, as |
|00005480| 64 65 73 69 72 65 64 20 | 77 69 74 68 6f 75 74 20 |desired |without |
|00005490| 72 65 73 74 72 69 63 74 | 69 6f 6e 2e 0a 20 2a 2f |restrict|ion.. */|
|000054a0| 0a 0a 2f 2a 20 46 69 72 | 73 74 2c 20 74 68 65 20 |../* Fir|st, the |
|000054b0| 70 6f 6c 79 6e 6f 6d 69 | 61 6c 20 69 74 73 65 6c |polynomi|al itsel|
|000054c0| 66 20 61 6e 64 20 69 74 | 73 20 74 61 62 6c 65 20 |f and it|s table |
|000054d0| 6f 66 20 66 65 65 64 62 | 61 63 6b 20 74 65 72 6d |of feedb|ack term|
|000054e0| 73 2e 20 20 54 68 65 20 | 20 2a 2f 0a 2f 2a 20 70 |s. The | */./* p|
|000054f0| 6f 6c 79 6e 6f 6d 69 61 | 6c 20 69 73 20 20 20 20 |olynomia|l is |
|00005500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005530| 20 20 20 2a 2f 0a 2f 2a | 20 58 5e 33 32 2b 58 5e | */./*| X^32+X^|
|00005540| 32 36 2b 58 5e 32 33 2b | 58 5e 32 32 2b 58 5e 31 |26+X^23+|X^22+X^1|
|00005550| 36 2b 58 5e 31 32 2b 58 | 5e 31 31 2b 58 5e 31 30 |6+X^12+X|^11+X^10|
|00005560| 2b 58 5e 38 2b 58 5e 37 | 2b 58 5e 35 2b 58 5e 34 |+X^8+X^7|+X^5+X^4|
|00005570| 2b 58 5e 32 2b 58 5e 31 | 2b 58 5e 30 20 2a 2f 0a |+X^2+X^1|+X^0 */.|
|00005580| 2f 2a 20 4e 6f 74 65 20 | 74 68 61 74 20 77 65 20 |/* Note |that we |
|00005590| 74 61 6b 65 20 69 74 20 | 22 62 61 63 6b 77 61 72 |take it |"backwar|
|000055a0| 64 73 22 20 61 6e 64 20 | 70 75 74 20 74 68 65 20 |ds" and |put the |
|000055b0| 68 69 67 68 65 73 74 2d | 6f 72 64 65 72 20 74 65 |highest-|order te|
|000055c0| 72 6d 20 69 6e 20 20 2a | 2f 0a 2f 2a 20 74 68 65 |rm in *|/./* the|
|000055d0| 20 6c 6f 77 65 73 74 2d | 6f 72 64 65 72 20 62 69 | lowest-|order bi|
|000055e0| 74 2e 20 20 54 68 65 20 | 58 5e 33 32 20 74 65 72 |t. The |X^32 ter|
|000055f0| 6d 20 69 73 20 22 69 6d | 70 6c 69 65 64 22 3b 20 |m is "im|plied"; |
|00005600| 74 68 65 20 4c 53 42 20 | 69 73 20 74 68 65 20 20 |the LSB |is the |
|00005610| 20 2a 2f 0a 2f 2a 20 58 | 5e 33 31 20 74 65 72 6d | */./* X|^31 term|
|00005620| 2c 20 65 74 63 2e 20 20 | 54 68 65 20 58 5e 30 20 |, etc. |The X^0 |
|00005630| 74 65 72 6d 20 28 75 73 | 75 61 6c 6c 79 20 73 68 |term (us|ually sh|
|00005640| 6f 77 6e 20 61 73 20 22 | 2b 31 22 29 20 72 65 73 |own as "|+1") res|
|00005650| 75 6c 74 73 20 69 6e 20 | 20 20 20 2a 2f 0a 2f 2a |ults in | */./*|
|00005660| 20 74 68 65 20 4d 53 42 | 20 62 65 69 6e 67 20 31 | the MSB| being 1|
|00005670| 2e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005690| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000056a0| 20 20 20 20 20 2a 2f 0a | 0a 2f 2a 20 4e 6f 74 65 | */.|./* Note|
|000056b0| 20 74 68 61 74 20 74 68 | 65 20 75 73 75 61 6c 20 | that th|e usual |
|000056c0| 68 61 72 64 77 61 72 65 | 20 73 68 69 66 74 20 72 |hardware| shift r|
|000056d0| 65 67 69 73 74 65 72 20 | 69 6d 70 6c 65 6d 65 6e |egister |implemen|
|000056e0| 74 61 74 69 6f 6e 2c 20 | 77 68 69 63 68 20 20 20 |tation, |which |
|000056f0| 2a 2f 0a 2f 2a 20 69 73 | 20 77 68 61 74 20 77 65 |*/./* is| what we|
|00005700| 27 72 65 20 75 73 69 6e | 67 20 28 77 65 27 72 65 |'re usin|g (we're|
|00005710| 20 6d 65 72 65 6c 79 20 | 6f 70 74 69 6d 69 7a 69 | merely |optimizi|
|00005720| 6e 67 20 69 74 20 62 79 | 20 64 6f 69 6e 67 20 65 |ng it by| doing e|
|00005730| 69 67 68 74 2d 62 69 74 | 20 20 2a 2f 0a 2f 2a 20 |ight-bit| */./* |
|00005740| 63 68 75 6e 6b 73 20 61 | 74 20 61 20 74 69 6d 65 |chunks a|t a time|
|00005750| 29 20 73 68 69 66 74 73 | 20 62 69 74 73 20 69 6e |) shifts| bits in|
|00005760| 74 6f 20 74 68 65 20 6c | 6f 77 65 73 74 2d 6f 72 |to the l|owest-or|
|00005770| 64 65 72 20 74 65 72 6d | 2e 20 20 49 6e 20 6f 75 |der term|. In ou|
|00005780| 72 20 20 20 2a 2f 0a 2f | 2a 20 69 6d 70 6c 65 6d |r */./|* implem|
|00005790| 65 6e 74 61 74 69 6f 6e | 2c 20 74 68 61 74 20 6d |entation|, that m|
|000057a0| 65 61 6e 73 20 73 68 69 | 66 74 69 6e 67 20 74 6f |eans shi|fting to|
|000057b0| 77 61 72 64 73 20 74 68 | 65 20 72 69 67 68 74 2e |wards th|e right.|
|000057c0| 20 20 57 68 79 20 64 6f | 20 77 65 20 20 20 2a 2f | Why do| we */|
|000057d0| 0a 2f 2a 20 64 6f 20 69 | 74 20 74 68 69 73 20 77 |./* do i|t this w|
|000057e0| 61 79 3f 20 20 42 65 63 | 61 75 73 65 20 74 68 65 |ay? Bec|ause the|
|000057f0| 20 63 61 6c 63 75 6c 61 | 74 65 64 20 43 52 43 20 | calcula|ted CRC |
|00005800| 6d 75 73 74 20 62 65 20 | 74 72 61 6e 73 6d 69 74 |must be |transmit|
|00005810| 74 65 64 20 69 6e 20 20 | 2a 2f 0a 2f 2a 20 6f 72 |ted in |*/./* or|
|00005820| 64 65 72 20 66 72 6f 6d | 20 68 69 67 68 65 73 74 |der from| highest|
|00005830| 2d 6f 72 64 65 72 20 74 | 65 72 6d 20 74 6f 20 6c |-order t|erm to l|
|00005840| 6f 77 65 73 74 2d 6f 72 | 64 65 72 20 74 65 72 6d |owest-or|der term|
|00005850| 2e 20 20 55 41 52 54 73 | 20 74 72 61 6e 73 6d 69 |. UARTs| transmi|
|00005860| 74 20 2a 2f 0a 2f 2a 20 | 63 68 61 72 61 63 74 65 |t */./* |characte|
|00005870| 72 73 20 69 6e 20 6f 72 | 64 65 72 20 66 72 6f 6d |rs in or|der from|
|00005880| 20 4c 53 42 20 74 6f 20 | 4d 53 42 2e 20 20 42 79 | LSB to |MSB. By|
|00005890| 20 73 74 6f 72 69 6e 67 | 20 74 68 65 20 43 52 43 | storing| the CRC|
|000058a0| 20 74 68 69 73 20 77 61 | 79 2c 20 20 2a 2f 0a 2f | this wa|y, */./|
|000058b0| 2a 20 77 65 20 68 61 6e | 64 20 69 74 20 74 6f 20 |* we han|d it to |
|000058c0| 74 68 65 20 55 41 52 54 | 20 69 6e 20 74 68 65 20 |the UART| in the |
|000058d0| 6f 72 64 65 72 20 6c 6f | 77 2d 62 79 74 65 20 74 |order lo|w-byte t|
|000058e0| 6f 20 68 69 67 68 2d 62 | 79 74 65 3b 20 74 68 65 |o high-b|yte; the|
|000058f0| 20 55 41 52 54 20 2a 2f | 0a 2f 2a 20 73 65 6e 64 | UART */|./* send|
|00005900| 73 20 65 61 63 68 20 6c | 6f 77 2d 62 69 74 20 74 |s each l|ow-bit t|
|00005910| 6f 20 68 69 67 68 74 2d | 62 69 74 3b 20 61 6e 64 |o hight-|bit; and|
|00005920| 20 74 68 65 20 72 65 73 | 75 6c 74 20 69 73 20 74 | the res|ult is t|
|00005930| 72 61 6e 73 6d 69 73 73 | 69 6f 6e 20 62 69 74 20 |ransmiss|ion bit |
|00005940| 2a 2f 0a 2f 2a 20 62 79 | 20 62 69 74 20 66 72 6f |*/./* by| bit fro|
|00005950| 6d 20 68 69 67 68 65 73 | 74 2d 20 74 6f 20 6c 6f |m highes|t- to lo|
|00005960| 77 65 73 74 2d 6f 72 64 | 65 72 20 74 65 72 6d 20 |west-ord|er term |
|00005970| 77 69 74 68 6f 75 74 20 | 72 65 71 75 69 72 69 6e |without |requirin|
|00005980| 67 20 61 6e 79 20 62 69 | 74 20 2a 2f 0a 2f 2a 20 |g any bi|t */./* |
|00005990| 73 68 75 66 66 6c 69 6e | 67 20 6f 6e 20 6f 75 72 |shufflin|g on our|
|000059a0| 20 70 61 72 74 2e 20 20 | 52 65 63 65 70 74 69 6f | part. |Receptio|
|000059b0| 6e 20 77 6f 72 6b 73 20 | 73 69 6d 69 6c 61 72 6c |n works |similarl|
|000059c0| 79 2e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |y. | |
|000059d0| 20 20 20 20 2a 2f 0a 0a | 2f 2a 20 54 68 65 20 66 | */..|/* The f|
|000059e0| 65 65 64 62 61 63 6b 20 | 74 65 72 6d 73 20 74 61 |eedback |terms ta|
|000059f0| 62 6c 65 20 63 6f 6e 73 | 69 73 74 73 20 6f 66 20 |ble cons|ists of |
|00005a00| 32 35 36 2c 20 33 32 2d | 62 69 74 20 65 6e 74 72 |256, 32-|bit entr|
|00005a10| 69 65 73 2e 20 20 4e 6f | 74 65 73 3a 20 20 20 2a |ies. No|tes: *|
|00005a20| 2f 0a 2f 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 |/./* | |
|00005a30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005a60| 20 20 20 20 20 20 20 20 | 20 2a 2f 0a 2f 2a 20 20 | | */./* |
|00005a70| 20 20 20 54 68 65 20 74 | 61 62 6c 65 20 63 61 6e | The t|able can|
|00005a80| 20 62 65 20 67 65 6e 65 | 72 61 74 65 64 20 61 74 | be gene|rated at|
|00005a90| 20 72 75 6e 74 69 6d 65 | 20 69 66 20 64 65 73 69 | runtime| if desi|
|00005aa0| 72 65 64 3b 20 63 6f 64 | 65 20 74 6f 20 64 6f 20 |red; cod|e to do |
|00005ab0| 73 6f 20 2a 2f 0a 2f 2a | 20 20 20 20 20 69 73 20 |so */./*| is |
|00005ac0| 73 68 6f 77 6e 20 6c 61 | 74 65 72 2e 20 20 49 74 |shown la|ter. It|
|00005ad0| 20 6d 69 67 68 74 20 6e | 6f 74 20 62 65 20 6f 62 | might n|ot be ob|
|00005ae0| 76 69 6f 75 73 2c 20 62 | 75 74 20 74 68 65 20 66 |vious, b|ut the f|
|00005af0| 65 65 64 62 61 63 6b 20 | 20 20 20 20 20 2a 2f 0a |eedback | */.|
|00005b00| 2f 2a 20 20 20 20 20 74 | 65 72 6d 73 20 73 69 6d |/* t|erms sim|
|00005b10| 70 6c 79 20 72 65 70 72 | 65 73 65 6e 74 20 74 68 |ply repr|esent th|
|00005b20| 65 20 72 65 73 75 6c 74 | 73 20 6f 66 20 65 69 67 |e result|s of eig|
|00005b30| 68 74 20 73 68 69 66 74 | 2f 78 6f 72 20 6f 70 65 |ht shift|/xor ope|
|00005b40| 72 61 2d 20 20 20 20 2a | 2f 0a 2f 2a 20 20 20 20 |ra- *|/./* |
|00005b50| 20 74 69 6f 6e 73 20 66 | 6f 72 20 61 6c 6c 20 63 | tions f|or all c|
|00005b60| 6f 6d 62 69 6e 61 74 69 | 6f 6e 73 20 6f 66 20 64 |ombinati|ons of d|
|00005b70| 61 74 61 20 61 6e 64 20 | 43 52 43 20 72 65 67 69 |ata and |CRC regi|
|00005b80| 73 74 65 72 20 76 61 6c | 75 65 73 2e 20 20 20 20 |ster val|ues. |
|00005b90| 20 2a 2f 0a 2f 2a 20 20 | 20 20 20 20 20 20 20 20 | */./* | |
|00005ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005bd0| 20 20 20 20 20 20 20 20 | 20 20 20 2a 2f 0a 2f 2a | | */./*|
|00005be0| 20 20 20 20 20 54 68 65 | 20 76 61 6c 75 65 73 20 | The| values |
|00005bf0| 6d 75 73 74 20 62 65 20 | 72 69 67 68 74 2d 73 68 |must be |right-sh|
|00005c00| 69 66 74 65 64 20 62 79 | 20 65 69 67 68 74 20 62 |ifted by| eight b|
|00005c10| 69 74 73 20 62 79 20 74 | 68 65 20 22 75 70 64 63 |its by t|he "updc|
|00005c20| 72 63 22 20 20 2a 2f 0a | 2f 2a 20 20 20 20 20 6c |rc" */.|/* l|
|00005c30| 6f 67 69 63 3b 20 74 68 | 65 20 73 68 69 66 74 20 |ogic; th|e shift |
|00005c40| 6d 75 73 74 20 62 65 20 | 75 6e 73 69 67 6e 65 64 |must be |unsigned|
|00005c50| 20 28 62 72 69 6e 67 20 | 69 6e 20 7a 65 72 6f 65 | (bring |in zeroe|
|00005c60| 73 29 2e 20 20 4f 6e 20 | 73 6f 6d 65 20 20 20 2a |s). On |some *|
|00005c70| 2f 0a 2f 2a 20 20 20 20 | 20 68 61 72 64 77 61 72 |/./* | hardwar|
|00005c80| 65 20 79 6f 75 20 63 6f | 75 6c 64 20 70 72 6f 62 |e you co|uld prob|
|00005c90| 61 62 6c 79 20 6f 70 74 | 69 6d 69 7a 65 20 74 68 |ably opt|imize th|
|00005ca0| 65 20 73 68 69 66 74 20 | 69 6e 20 61 73 73 65 6d |e shift |in assem|
|00005cb0| 62 6c 65 72 20 62 79 20 | 20 2a 2f 0a 2f 2a 20 20 |bler by | */./* |
|00005cc0| 20 20 20 75 73 69 6e 67 | 20 62 79 74 65 2d 73 77 | using| byte-sw|
|00005cd0| 61 70 20 69 6e 73 74 72 | 75 63 74 69 6f 6e 73 2e |ap instr|uctions.|
|00005ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005d00| 20 20 20 2a 2f 0a 0a 73 | 74 61 74 69 63 20 6c 6f | */..s|tatic lo|
|00005d10| 6e 67 20 63 72 33 74 61 | 62 5b 5d 20 3d 20 7b 20 |ng cr3ta|b[] = { |
|00005d20| 2f 2a 20 43 52 43 20 70 | 6f 6c 79 6e 6f 6d 69 61 |/* CRC p|olynomia|
|00005d30| 6c 20 30 78 65 64 62 38 | 38 33 32 30 20 2a 2f 0a |l 0xedb8|8320 */.|
|00005d40| 30 78 30 30 30 30 30 30 | 30 30 2c 20 30 78 37 37 |0x000000|00, 0x77|
|00005d50| 30 37 33 30 39 36 2c 20 | 30 78 65 65 30 65 36 31 |073096, |0xee0e61|
|00005d60| 32 63 2c 20 30 78 39 39 | 30 39 35 31 62 61 2c 20 |2c, 0x99|0951ba, |
|00005d70| 30 78 30 37 36 64 63 34 | 31 39 2c 20 30 78 37 30 |0x076dc4|19, 0x70|
|00005d80| 36 61 66 34 38 66 2c 20 | 30 78 65 39 36 33 61 35 |6af48f, |0xe963a5|
|00005d90| 33 35 2c 20 30 78 39 65 | 36 34 39 35 61 33 2c 0a |35, 0x9e|6495a3,.|
|00005da0| 30 78 30 65 64 62 38 38 | 33 32 2c 20 30 78 37 39 |0x0edb88|32, 0x79|
|00005db0| 64 63 62 38 61 34 2c 20 | 30 78 65 30 64 35 65 39 |dcb8a4, |0xe0d5e9|
|00005dc0| 31 65 2c 20 30 78 39 37 | 64 32 64 39 38 38 2c 20 |1e, 0x97|d2d988, |
|00005dd0| 30 78 30 39 62 36 34 63 | 32 62 2c 20 30 78 37 65 |0x09b64c|2b, 0x7e|
|00005de0| 62 31 37 63 62 64 2c 20 | 30 78 65 37 62 38 32 64 |b17cbd, |0xe7b82d|
|00005df0| 30 37 2c 20 30 78 39 30 | 62 66 31 64 39 31 2c 0a |07, 0x90|bf1d91,.|
|00005e00| 30 78 31 64 62 37 31 30 | 36 34 2c 20 30 78 36 61 |0x1db710|64, 0x6a|
|00005e10| 62 30 32 30 66 32 2c 20 | 30 78 66 33 62 39 37 31 |b020f2, |0xf3b971|
|00005e20| 34 38 2c 20 30 78 38 34 | 62 65 34 31 64 65 2c 20 |48, 0x84|be41de, |
|00005e30| 30 78 31 61 64 61 64 34 | 37 64 2c 20 30 78 36 64 |0x1adad4|7d, 0x6d|
|00005e40| 64 64 65 34 65 62 2c 20 | 30 78 66 34 64 34 62 35 |dde4eb, |0xf4d4b5|
|00005e50| 35 31 2c 20 30 78 38 33 | 64 33 38 35 63 37 2c 0a |51, 0x83|d385c7,.|
|00005e60| 30 78 31 33 36 63 39 38 | 35 36 2c 20 30 78 36 34 |0x136c98|56, 0x64|
|00005e70| 36 62 61 38 63 30 2c 20 | 30 78 66 64 36 32 66 39 |6ba8c0, |0xfd62f9|
|00005e80| 37 61 2c 20 30 78 38 61 | 36 35 63 39 65 63 2c 20 |7a, 0x8a|65c9ec, |
|00005e90| 30 78 31 34 30 31 35 63 | 34 66 2c 20 30 78 36 33 |0x14015c|4f, 0x63|
|00005ea0| 30 36 36 63 64 39 2c 20 | 30 78 66 61 30 66 33 64 |066cd9, |0xfa0f3d|
|00005eb0| 36 33 2c 20 30 78 38 64 | 30 38 30 64 66 35 2c 0a |63, 0x8d|080df5,.|
|00005ec0| 30 78 33 62 36 65 32 30 | 63 38 2c 20 30 78 34 63 |0x3b6e20|c8, 0x4c|
|00005ed0| 36 39 31 30 35 65 2c 20 | 30 78 64 35 36 30 34 31 |69105e, |0xd56041|
|00005ee0| 65 34 2c 20 30 78 61 32 | 36 37 37 31 37 32 2c 20 |e4, 0xa2|677172, |
|00005ef0| 30 78 33 63 30 33 65 34 | 64 31 2c 20 30 78 34 62 |0x3c03e4|d1, 0x4b|
|00005f00| 30 34 64 34 34 37 2c 20 | 30 78 64 32 30 64 38 35 |04d447, |0xd20d85|
|00005f10| 66 64 2c 20 30 78 61 35 | 30 61 62 35 36 62 2c 0a |fd, 0xa5|0ab56b,.|
|00005f20| 30 78 33 35 62 35 61 38 | 66 61 2c 20 30 78 34 32 |0x35b5a8|fa, 0x42|
|00005f30| 62 32 39 38 36 63 2c 20 | 30 78 64 62 62 62 63 39 |b2986c, |0xdbbbc9|
|00005f40| 64 36 2c 20 30 78 61 63 | 62 63 66 39 34 30 2c 20 |d6, 0xac|bcf940, |
|00005f50| 30 78 33 32 64 38 36 63 | 65 33 2c 20 30 78 34 35 |0x32d86c|e3, 0x45|
|00005f60| 64 66 35 63 37 35 2c 20 | 30 78 64 63 64 36 30 64 |df5c75, |0xdcd60d|
|00005f70| 63 66 2c 20 30 78 61 62 | 64 31 33 64 35 39 2c 0a |cf, 0xab|d13d59,.|
|00005f80| 30 78 32 36 64 39 33 30 | 61 63 2c 20 30 78 35 31 |0x26d930|ac, 0x51|
|00005f90| 64 65 30 30 33 61 2c 20 | 30 78 63 38 64 37 35 31 |de003a, |0xc8d751|
|00005fa0| 38 30 2c 20 30 78 62 66 | 64 30 36 31 31 36 2c 20 |80, 0xbf|d06116, |
|00005fb0| 30 78 32 31 62 34 66 34 | 62 35 2c 20 30 78 35 36 |0x21b4f4|b5, 0x56|
|00005fc0| 62 33 63 34 32 33 2c 20 | 30 78 63 66 62 61 39 35 |b3c423, |0xcfba95|
|00005fd0| 39 39 2c 20 30 78 62 38 | 62 64 61 35 30 66 2c 0a |99, 0xb8|bda50f,.|
|00005fe0| 30 78 32 38 30 32 62 38 | 39 65 2c 20 30 78 35 66 |0x2802b8|9e, 0x5f|
|00005ff0| 30 35 38 38 30 38 2c 20 | 30 78 63 36 30 63 64 39 |058808, |0xc60cd9|
|00006000| 62 32 2c 20 30 78 62 31 | 30 62 65 39 32 34 2c 20 |b2, 0xb1|0be924, |
|00006010| 30 78 32 66 36 66 37 63 | 38 37 2c 20 30 78 35 38 |0x2f6f7c|87, 0x58|
|00006020| 36 38 34 63 31 31 2c 20 | 30 78 63 31 36 31 31 64 |684c11, |0xc1611d|
|00006030| 61 62 2c 20 30 78 62 36 | 36 36 32 64 33 64 2c 0a |ab, 0xb6|662d3d,.|
|00006040| 30 78 37 36 64 63 34 31 | 39 30 2c 20 30 78 30 31 |0x76dc41|90, 0x01|
|00006050| 64 62 37 31 30 36 2c 20 | 30 78 39 38 64 32 32 30 |db7106, |0x98d220|
|00006060| 62 63 2c 20 30 78 65 66 | 64 35 31 30 32 61 2c 20 |bc, 0xef|d5102a, |
|00006070| 30 78 37 31 62 31 38 35 | 38 39 2c 20 30 78 30 36 |0x71b185|89, 0x06|
|00006080| 62 36 62 35 31 66 2c 20 | 30 78 39 66 62 66 65 34 |b6b51f, |0x9fbfe4|
|00006090| 61 35 2c 20 30 78 65 38 | 62 38 64 34 33 33 2c 0a |a5, 0xe8|b8d433,.|
|000060a0| 30 78 37 38 30 37 63 39 | 61 32 2c 20 30 78 30 66 |0x7807c9|a2, 0x0f|
|000060b0| 30 30 66 39 33 34 2c 20 | 30 78 39 36 30 39 61 38 |00f934, |0x9609a8|
|000060c0| 38 65 2c 20 30 78 65 31 | 30 65 39 38 31 38 2c 20 |8e, 0xe1|0e9818, |
|000060d0| 30 78 37 66 36 61 30 64 | 62 62 2c 20 30 78 30 38 |0x7f6a0d|bb, 0x08|
|000060e0| 36 64 33 64 32 64 2c 20 | 30 78 39 31 36 34 36 63 |6d3d2d, |0x91646c|
|000060f0| 39 37 2c 20 30 78 65 36 | 36 33 35 63 30 31 2c 0a |97, 0xe6|635c01,.|
|00006100| 30 78 36 62 36 62 35 31 | 66 34 2c 20 30 78 31 63 |0x6b6b51|f4, 0x1c|
|00006110| 36 63 36 31 36 32 2c 20 | 30 78 38 35 36 35 33 30 |6c6162, |0x856530|
|00006120| 64 38 2c 20 30 78 66 32 | 36 32 30 30 34 65 2c 20 |d8, 0xf2|62004e, |
|00006130| 30 78 36 63 30 36 39 35 | 65 64 2c 20 30 78 31 62 |0x6c0695|ed, 0x1b|
|00006140| 30 31 61 35 37 62 2c 20 | 30 78 38 32 30 38 66 34 |01a57b, |0x8208f4|
|00006150| 63 31 2c 20 30 78 66 35 | 30 66 63 34 35 37 2c 0a |c1, 0xf5|0fc457,.|
|00006160| 30 78 36 35 62 30 64 39 | 63 36 2c 20 30 78 31 32 |0x65b0d9|c6, 0x12|
|00006170| 62 37 65 39 35 30 2c 20 | 30 78 38 62 62 65 62 38 |b7e950, |0x8bbeb8|
|00006180| 65 61 2c 20 30 78 66 63 | 62 39 38 38 37 63 2c 20 |ea, 0xfc|b9887c, |
|00006190| 30 78 36 32 64 64 31 64 | 64 66 2c 20 30 78 31 35 |0x62dd1d|df, 0x15|
|000061a0| 64 61 32 64 34 39 2c 20 | 30 78 38 63 64 33 37 63 |da2d49, |0x8cd37c|
|000061b0| 66 33 2c 20 30 78 66 62 | 64 34 34 63 36 35 2c 0a |f3, 0xfb|d44c65,.|
|000061c0| 30 78 34 64 62 32 36 31 | 35 38 2c 20 30 78 33 61 |0x4db261|58, 0x3a|
|000061d0| 62 35 35 31 63 65 2c 20 | 30 78 61 33 62 63 30 30 |b551ce, |0xa3bc00|
|000061e0| 37 34 2c 20 30 78 64 34 | 62 62 33 30 65 32 2c 20 |74, 0xd4|bb30e2, |
|000061f0| 30 78 34 61 64 66 61 35 | 34 31 2c 20 30 78 33 64 |0x4adfa5|41, 0x3d|
|00006200| 64 38 39 35 64 37 2c 20 | 30 78 61 34 64 31 63 34 |d895d7, |0xa4d1c4|
|00006210| 36 64 2c 20 30 78 64 33 | 64 36 66 34 66 62 2c 0a |6d, 0xd3|d6f4fb,.|
|00006220| 30 78 34 33 36 39 65 39 | 36 61 2c 20 30 78 33 34 |0x4369e9|6a, 0x34|
|00006230| 36 65 64 39 66 63 2c 20 | 30 78 61 64 36 37 38 38 |6ed9fc, |0xad6788|
|00006240| 34 36 2c 20 30 78 64 61 | 36 30 62 38 64 30 2c 20 |46, 0xda|60b8d0, |
|00006250| 30 78 34 34 30 34 32 64 | 37 33 2c 20 30 78 33 33 |0x44042d|73, 0x33|
|00006260| 30 33 31 64 65 35 2c 20 | 30 78 61 61 30 61 34 63 |031de5, |0xaa0a4c|
|00006270| 35 66 2c 20 30 78 64 64 | 30 64 37 63 63 39 2c 0a |5f, 0xdd|0d7cc9,.|
|00006280| 30 78 35 30 30 35 37 31 | 33 63 2c 20 30 78 32 37 |0x500571|3c, 0x27|
|00006290| 30 32 34 31 61 61 2c 20 | 30 78 62 65 30 62 31 30 |0241aa, |0xbe0b10|
|000062a0| 31 30 2c 20 30 78 63 39 | 30 63 32 30 38 36 2c 20 |10, 0xc9|0c2086, |
|000062b0| 30 78 35 37 36 38 62 35 | 32 35 2c 20 30 78 32 30 |0x5768b5|25, 0x20|
|000062c0| 36 66 38 35 62 33 2c 20 | 30 78 62 39 36 36 64 34 |6f85b3, |0xb966d4|
|000062d0| 30 39 2c 20 30 78 63 65 | 36 31 65 34 39 66 2c 0a |09, 0xce|61e49f,.|
|000062e0| 30 78 35 65 64 65 66 39 | 30 65 2c 20 30 78 32 39 |0x5edef9|0e, 0x29|
|000062f0| 64 39 63 39 39 38 2c 20 | 30 78 62 30 64 30 39 38 |d9c998, |0xb0d098|
|00006300| 32 32 2c 20 30 78 63 37 | 64 37 61 38 62 34 2c 20 |22, 0xc7|d7a8b4, |
|00006310| 30 78 35 39 62 33 33 64 | 31 37 2c 20 30 78 32 65 |0x59b33d|17, 0x2e|
|00006320| 62 34 30 64 38 31 2c 20 | 30 78 62 37 62 64 35 63 |b40d81, |0xb7bd5c|
|00006330| 33 62 2c 20 30 78 63 30 | 62 61 36 63 61 64 2c 0a |3b, 0xc0|ba6cad,.|
|00006340| 30 78 65 64 62 38 38 33 | 32 30 2c 20 30 78 39 61 |0xedb883|20, 0x9a|
|00006350| 62 66 62 33 62 36 2c 20 | 30 78 30 33 62 36 65 32 |bfb3b6, |0x03b6e2|
|00006360| 30 63 2c 20 30 78 37 34 | 62 31 64 32 39 61 2c 20 |0c, 0x74|b1d29a, |
|00006370| 30 78 65 61 64 35 34 37 | 33 39 2c 20 30 78 39 64 |0xead547|39, 0x9d|
|00006380| 64 32 37 37 61 66 2c 20 | 30 78 30 34 64 62 32 36 |d277af, |0x04db26|
|00006390| 31 35 2c 20 30 78 37 33 | 64 63 31 36 38 33 2c 0a |15, 0x73|dc1683,.|
|000063a0| 30 78 65 33 36 33 30 62 | 31 32 2c 20 30 78 39 34 |0xe3630b|12, 0x94|
|000063b0| 36 34 33 62 38 34 2c 20 | 30 78 30 64 36 64 36 61 |643b84, |0x0d6d6a|
|000063c0| 33 65 2c 20 30 78 37 61 | 36 61 35 61 61 38 2c 20 |3e, 0x7a|6a5aa8, |
|000063d0| 30 78 65 34 30 65 63 66 | 30 62 2c 20 30 78 39 33 |0xe40ecf|0b, 0x93|
|000063e0| 30 39 66 66 39 64 2c 20 | 30 78 30 61 30 30 61 65 |09ff9d, |0x0a00ae|
|000063f0| 32 37 2c 20 30 78 37 64 | 30 37 39 65 62 31 2c 0a |27, 0x7d|079eb1,.|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.