Home » Personal collection » Acorn hard disk » apps » Econet » Oddments/CRC_Check
Oddments/CRC_Check
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Personal collection » Acorn hard disk » apps » Econet |
Filename: | Oddments/CRC_Check |
Read OK: | ✔ |
File size: | 00B7 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10c%=0 20FOR ptr%=0 TO len% 30 c%=c% EOR(data%?ptr%)*256 40 FOR loop%=1 TO 8 50 IF (c%*2)>&FFFF THEN 60 cy%=1:c%=c% EOR &810 70 ELSE 80 cy%=0 90 ENDIF 100 c%=((c%*2) AND &FFFF)+cy% 110 NEXT,
c%=0 � ptr%=0 � len% c%=c% �(data%?ptr%)*256 ( � loop%=1 � 8 2 � (c%*2)>&FFFF � < cy%=1:c%=c% � &810 F � P cy%=0 Z � d c%=((c%*2) � &FFFF)+cy% n �, �
00000000 0d 00 0a 08 63 25 3d 30 0d 00 14 13 e3 20 70 74 |....c%=0..... pt| 00000010 72 25 3d 30 20 b8 20 6c 65 6e 25 0d 00 1e 1c 20 |r%=0 . len%.... | 00000020 63 25 3d 63 25 20 82 28 64 61 74 61 25 3f 70 74 |c%=c% .(data%?pt| 00000030 72 25 29 2a 32 35 36 0d 00 28 12 20 e3 20 6c 6f |r%)*256..(. . lo| 00000040 6f 70 25 3d 31 20 b8 20 38 0d 00 32 16 20 20 e7 |op%=1 . 8..2. .| 00000050 20 28 63 25 2a 32 29 3e 26 46 46 46 46 20 8c 0d | (c%*2)>&FFFF ..| 00000060 00 3c 19 20 20 20 63 79 25 3d 31 3a 63 25 3d 63 |.<. cy%=1:c%=c| 00000070 25 20 82 20 26 38 31 30 0d 00 46 07 20 20 cc 0d |% . &810..F. ..| 00000080 00 50 0c 20 20 20 63 79 25 3d 30 0d 00 5a 07 20 |.P. cy%=0..Z. | 00000090 20 cd 0d 00 64 1c 20 63 25 3d 28 28 63 25 2a 32 | ...d. c%=((c%*2| 000000a0 29 20 80 20 26 46 46 46 46 29 2b 63 79 25 0d 00 |) . &FFFF)+cy%..| 000000b0 6e 07 20 ed 2c 0d ff |n. .,..| 000000b7