Home » Personal collection » Acorn hard disk » misc » misc2 » dcfprogs/Rescue

dcfprogs/Rescue

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 » misc » misc2
Filename: dcfprogs/Rescue
Read OK:
File size: 020C bytes
Load address: 0000
Exec address: 0000
File contents
   60ON ERROR GOTO 320
   70PROCinit
   80REPEAT
   90PROCrecover
  100UNTIL FINISHED
  110PAGE=P%
  120END
  130:
  140DEFPROCrecover
  150?line=&0D:lenpos=line+3:count=1
  160IF ?line=&0D AND line?1=&FF THEN FINISHED=TRUE:ENDPROC
  170PRINT(line?1)*256+(line?2);
  180REPEAT
  190IF line?count<>&0D THEN count=count+1
  200IF line?count<>&0D AND line?count<32 AND count>4 THEN line?count=35
  210IF count>250 THEN line?(count+1)=&0D
  220UNTIL line?count=&0D
  230PRINT ~line
  240line=line+count:?lenpos=count
  250ENDPROC
  260:
  270DEFPROCinit
  280P%=&E00
  290line=P%
  300line?1=0:FINISHED=FALSE
  310ENDPROC
  320:
  330ON ERROR OFF
  340MODE 6:IF ERR=17 THEN END
  350REPORT:PRINT" at line ";ERL
  360END
<� � � �D@A
F	�init
P�
Z�recover
d� FINISHED
n�=P%
x�
�:
�
��recover
�#?line=&0D:lenpos=line+3:count=1
�+� ?line=&0D � line?1=&FF � FINISHED=�:�
��(line?1)*256+(line?2);
��
�%� line?count<>&0D � count=count+1
�?� line?count<>&0D � line?count<32 � count>4 � line?count=35
�$� count>250 � line?(count+1)=&0D
�� line?count=&0D
�� ~line
�!line=line+count:?lenpos=count
��
:

��init
P%=&E00
"line=P%
,line?1=0:FINISHED=�
6�
@:
J	� � �
T� 6:� �=17 � �
^�:�" at line ";�
h�
�
00000000  0d 00 3c 0e ee 20 85 20  e5 20 8d 44 40 41 0d 00  |..<.. . . .D@A..|
00000010  46 09 f2 69 6e 69 74 0d  00 50 05 f5 0d 00 5a 0c  |F..init..P....Z.|
00000020  f2 72 65 63 6f 76 65 72  0d 00 64 0e fd 20 46 49  |.recover..d.. FI|
00000030  4e 49 53 48 45 44 0d 00  6e 08 d0 3d 50 25 0d 00  |NISHED..n..=P%..|
00000040  78 05 e0 0d 00 82 05 3a  0d 00 8c 0d dd f2 72 65  |x......:......re|
00000050  63 6f 76 65 72 0d 00 96  23 3f 6c 69 6e 65 3d 26  |cover...#?line=&|
00000060  30 44 3a 6c 65 6e 70 6f  73 3d 6c 69 6e 65 2b 33  |0D:lenpos=line+3|
00000070  3a 63 6f 75 6e 74 3d 31  0d 00 a0 2b e7 20 3f 6c  |:count=1...+. ?l|
00000080  69 6e 65 3d 26 30 44 20  80 20 6c 69 6e 65 3f 31  |ine=&0D . line?1|
00000090  3d 26 46 46 20 8c 20 46  49 4e 49 53 48 45 44 3d  |=&FF . FINISHED=|
000000a0  b9 3a e1 0d 00 aa 1b f1  28 6c 69 6e 65 3f 31 29  |.:......(line?1)|
000000b0  2a 32 35 36 2b 28 6c 69  6e 65 3f 32 29 3b 0d 00  |*256+(line?2);..|
000000c0  b4 05 f5 0d 00 be 25 e7  20 6c 69 6e 65 3f 63 6f  |......%. line?co|
000000d0  75 6e 74 3c 3e 26 30 44  20 8c 20 63 6f 75 6e 74  |unt<>&0D . count|
000000e0  3d 63 6f 75 6e 74 2b 31  0d 00 c8 3f e7 20 6c 69  |=count+1...?. li|
000000f0  6e 65 3f 63 6f 75 6e 74  3c 3e 26 30 44 20 80 20  |ne?count<>&0D . |
00000100  6c 69 6e 65 3f 63 6f 75  6e 74 3c 33 32 20 80 20  |line?count<32 . |
00000110  63 6f 75 6e 74 3e 34 20  8c 20 6c 69 6e 65 3f 63  |count>4 . line?c|
00000120  6f 75 6e 74 3d 33 35 0d  00 d2 24 e7 20 63 6f 75  |ount=35...$. cou|
00000130  6e 74 3e 32 35 30 20 8c  20 6c 69 6e 65 3f 28 63  |nt>250 . line?(c|
00000140  6f 75 6e 74 2b 31 29 3d  26 30 44 0d 00 dc 14 fd  |ount+1)=&0D.....|
00000150  20 6c 69 6e 65 3f 63 6f  75 6e 74 3d 26 30 44 0d  | line?count=&0D.|
00000160  00 e6 0b f1 20 7e 6c 69  6e 65 0d 00 f0 21 6c 69  |.... ~line...!li|
00000170  6e 65 3d 6c 69 6e 65 2b  63 6f 75 6e 74 3a 3f 6c  |ne=line+count:?l|
00000180  65 6e 70 6f 73 3d 63 6f  75 6e 74 0d 00 fa 05 e1  |enpos=count.....|
00000190  0d 01 04 05 3a 0d 01 0e  0a dd f2 69 6e 69 74 0d  |....:......init.|
000001a0  01 18 0b 50 25 3d 26 45  30 30 0d 01 22 0b 6c 69  |...P%=&E00..".li|
000001b0  6e 65 3d 50 25 0d 01 2c  17 6c 69 6e 65 3f 31 3d  |ne=P%..,.line?1=|
000001c0  30 3a 46 49 4e 49 53 48  45 44 3d a3 0d 01 36 05  |0:FINISHED=...6.|
000001d0  e1 0d 01 40 05 3a 0d 01  4a 09 ee 20 85 20 87 0d  |...@.:..J.. . ..|
000001e0  01 54 12 eb 20 36 3a e7  20 9f 3d 31 37 20 8c 20  |.T.. 6:. .=17 . |
000001f0  e0 0d 01 5e 14 f6 3a f1  22 20 61 74 20 6c 69 6e  |...^..:." at lin|
00000200  65 20 22 3b 9e 0d 01 68  05 e0 0d ff              |e ";...h....|
0000020c