Home » Personal collection » Acorn ADFS disks » Greaseweazled » adfs_Dominic_4.adf » !BEEBARC/ADD\INF
!BEEBARC/ADD\INF
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 ADFS disks » Greaseweazled » adfs_Dominic_4.adf |
Filename: | !BEEBARC/ADD\INF |
Read OK: | ✔ |
File size: | 0C52 bytes |
Load address: | FFFFFB46 |
Exec address: | BABBC398 |
Duplicates
There are 2 duplicate copies of this file in the archive:
- Personal collection » Acorn ADFS disks » Archimedes » Dominic_4.ADF » !BEEBARC/ADD\INF
- Personal collection » Acorn ADFS disks » Greaseweazled » adfs_Dominic_4.adf » !BEEBARC/ADD\INF
- Personal collection » Acorn hard disk » misc » misc2 » biobot/!BEEBARC/ADD.INF
File contents
10REM Add/inf 0.03, 6 Apr 1996 20REM Convert files from a directory (or archive) from Acorn format 30REM to .inf format 40REM By Darren Salt 50 60out%=-1:END=&18000 70ON ERROR SYS "XOS_Find",,out%:A%=1:SYS "XOS_CLI","Set Sys$ReturnCode 1":ERROR EXT ERR,REPORT$ 80DIM q% 512,file$(76,1),info%(76,2),crc% 256 90P%=crc% 100[OPT 2 110MOV 0,#0 120.mloop TEQ 1,2:MOVEQS PC,14 130LDRB 3,[1],#1:EOR 0,0,3,LSL #8:MOV 3,#8 140.lp TST 0,#32768:EORNE 0,0,#&810:MOV 0,0,LSL #1:ORR 0,0,0,LSR #16 150BIC 0,0,#65536:SUBS 3,3,#1:BNE lp:B mloop 160]SYS "OS_GetEnv" TO e%:SYS "XOS_ReadArgs",",quit,,,v/s,w/s,a/s",e%,q%,512 TO ;F% 180IF F% AND 1 THEN q%!8=0:q%!12=0 190src$=FN0(8):dst$=FN0(12):vb%=q%!16<>0:arc%=q%!24<>0 200IF src$="" OR dst$="" OR (F% AND 1) THEN ERROR 220,"Syntax: Add/inf <source dir> <dest dir> [-v] [-w] [-a]" 210IF arc% THEN 220 SYS "XOS_Module",18,"SparkFS" TO ;A% 230 IF A% AND 1 ELSE SYS "XOS_Module",18,"Zip" TO ;A% 240 IF A% AND 1 THEN arc%=FALSE 250ENDIF 260IF arc% THEN OSCLI "SparkFSCreate 4 "+dst$:ELSE SYS "OS_File",8,dst$,77 270SYS "XOS_File",5,dst$ TO A%:IF A%<=1 THEN SYS "OS_File",19,dst$,A% 280IF A%>3 THEN SYS "OS_GenerateError",A% 290SYS "OS_File",5,dst$+".*" TO wipe% 300IF wipe%=0 ELSE IF q%!20 ELSE ERROR 1,"Destination directory is not empty!" 310from%=LEN src$+2:file%=0:PROCscan(src$) 320IF wipe% AND q%!20 THEN 330 IF vb% THEN PRINT "Wiping destination directory" 340 OSCLI "Wipe "+dst$+".* ~C~FR~V" 350ENDIF 360FOR n%=0 TO file%-1 370 IF vb% THEN PRINT "Copying "file$(n%,0); 380 A%=info%(n%,0)>>8:IF A%<0 THEN A%=A% AND &FFF:ELSE A%=-1 390 B%=info%(n%,0) AND &FFFFFF:C%=info%(n%,1) AND &FFFFFF 400 CASE A% OF 410 WHEN &FFB:B%=&FF1900:C%=&FF8023:IF vb% THEN PRINT " (BASIC)" 420 WHEN &BBC:B%=&8000:C%=&8000:IF vb% THEN PRINT " (ROM)" 430 WHEN &FFE:B%=&FFFFFF:C%=&FFFFFF:IF vb% THEN PRINT " (*Exec)" 440 OTHERWISE:IF vb% THEN PRINT " (";~info%(n%,0)",";~info%(n%,1)")" 450 ENDCASE 460 SYS "Wimp_SlotSize",&10000+info%(n%,2),-1,-1 TO A% 470 IF A%<&10000+info%(n%,2) THEN ERROR 1,"Not enough memory to calculate CRCs" 480 SYS "OS_File",255,src$+"."+file$(n%,0),&18000:n$=RIGHT$("00"+STR$ n%,3) 490 SYS "OS_File",,dst$+"."+n$,info%(n%,0),info%(n%,1),&18000,&18000+info%(n%,2) 500 out%=OPENOUT (dst$+"."+RIGHT$("00"+STR$ n%,3)+"/inf") 510 BPUT#out%,LEFT$(file$(n%,1)+" ",10); 520 BPUT#out%,RIGHT$("00000"+STR$~B%,6)+" "+RIGHT$("00000"+STR$~C%,6)+" "; 530 BPUT#out%,RIGHT$("00000"+STR$~info%(n%,2),6); 540 B%=&18000:C%=B%+info%(n%,2) 550 BPUT#out%," CRC= "+RIGHT$("000"+STR$~USR crc%,4); 560 CLOSE#out%:out%=-1 570NEXT 580*Set Sys$ReturnCode 0 590END 600 610DEF PROCscan(src$) 620LOCAL P%:SYS "OS_GBPB",10,src$,q%,1,,256 TO ,,,,P% 630WHILE P%>-1 640 CASE q%!16 OF 650 WHEN 1:file$(file%,0)=MID$(src$+"."+FN0(q%+20),from%) 660 file$(file%,1)=FNname(file$(file%,0)) 670 IF vb% THEN PRINT "Found "file$(file%,0) 680 info%(file%,0)=!q%:info%(file%,1)=q%!4:info%(file%,2)=q%!8:file%+=1 690 WHEN 2,3:PROCscan(src$+"."+FN0(q%+20)) 700 ENDCASE 710 SYS "OS_GBPB",10,src$,q%,1,P%,256 TO ,,,,P% 720ENDWHILE 730ENDPROC 740 750DEF FN0(A%) 760IF A%<256 THEN A%=q%!A% 770IF A% THEN LOCAL a$:SYS "OS_WriteN",A% TO a$:=a$ 780="" 790 800DEF FNspc(a$) 810WHILE a$>"" AND ASC a$=32:a$=MID$(a$,2):ENDWHILE 820=a$ 830 840DEF FNname(a$) 850LOCAL n%,c$,i%:i%=INSTR(a$,"."):IF i%=0 OR i%>2 THEN a$="$."+a$ 860IF LEN a$>9 THEN ERROR 1,"Cannot convert filename """+a$+"""" 870FOR n%=1 TO LEN a$ 880 c$=MID$(a$,n%,1):i%=INSTR("[}{)",c$) 890 IF i% THEN MID$(a$,n%,1)=MID$("$%&^",i%) 900NEXT 910=a$ 920 930DEF FNcase(a$) 940IF a$="" THEN ="" 950LOCAL n%,C% 960FOR n%=1 TO LEN a$ 970 C%=ASC MID$(a$,n%,1):IF C%>96 AND C%<123 THEN MID$(a$,n%,1)=CHR$ (C%-32) 980NEXT 990=a$
� Add/inf 0.03, 6 Apr 1996 C� Convert files from a directory (or archive) from Acorn format � to .inf format (� By Darren Salt 2 <out%=-1:�=&18000 FM� � ș "XOS_Find",,out%:A%=1:ș "XOS_CLI","Set Sys$ReturnCode 1":� � �,�$ P-� q% 512,file$(76,1),info%(76,2),crc% 256 ZP%=crc% d [OPT 2 nMOV 0,#0 x.mloop TEQ 1,2:�QS PC,14 �)LDRB 3,[1],#1:� 0,0,3,LSL #8:MOV 3,#8 �B.lp TST 0,#32768:�NE 0,0,#&810:MOV 0,0,LSL #1:�R 0,0,0,LSR #16 �-BIC 0,0,#65536:SUBS 3,3,#1:BNE lp:B mloop �P]ș "OS_GetEnv" � e%:ș "XOS_ReadArgs",",quit,,,v/s,w/s,a/s",e%,q%,512 � ;F% �� F% � 1 � q%!8=0:q%!12=0 �5src$=�0(8):dst$=�0(12):vb%=q%!16<>0:arc%=q%!24<>0 �c� src$="" � dst$="" � (F% � 1) � � 220,"Syntax: Add/inf <source dir> <dest dir> [-v] [-w] [-a]" �� arc% � �' ș "XOS_Module",18,"SparkFS" � ;A% �. � A% � 1 � ș "XOS_Module",18,"Zip" � ;A% � � A% � 1 � arc%=� �� ?� arc% � � "SparkFSCreate 4 "+dst$:� ș "OS_File",8,dst$,77 ?ș "XOS_File",5,dst$ � A%:� A%<=1 � ș "OS_File",19,dst$,A% %� A%>3 � ș "OS_GenerateError",A% "$ș "OS_File",5,dst$+".*" � wipe% ,C� wipe%=0 � � q%!20 � � 1,"Destination directory is not empty!" 6&from%=� src$+2:file%=0:�scan(src$) @� wipe% � q%!20 � J- � vb% � � "Wiping destination directory" T � "Wipe "+dst$+".* ~C~FR~V" ^� h� n%=0 � file%-1 r% � vb% � � "Copying "file$(n%,0); |4 A%=info%(n%,0)>>8:� A%<0 � A%=A% � &FFF:� A%=-1 �6 B%=info%(n%,0) � &FFFFFF:C%=info%(n%,1) � &FFFFFF � Ȏ A% � �6 � &FFB:B%=&FF1900:C%=&FF8023:� vb% � � " (BASIC)" �0 � &BBC:B%=&8000:C%=&8000:� vb% � � " (ROM)" �6 � &FFE:B%=&FFFFFF:C%=&FFFFFF:� vb% � � " (*Exec)" �5 :� vb% � � " (";~info%(n%,0)",";~info%(n%,1)")" � � �5 ș "Wimp_SlotSize",&10000+info%(n%,2),-1,-1 � A% �H � A%<&10000+info%(n%,2) � � 1,"Not enough memory to calculate CRCs" �B ș "OS_File",255,src$+"."+file$(n%,0),&18000:n$=�"00"+� n%,3) �P ș "OS_File",,dst$+"."+n$,info%(n%,0),info%(n%,1),&18000,&18000+info%(n%,2) �+ out%=� (dst$+"."+�"00"+� n%,3)+"/inf") �* �#out%,�file$(n%,1)+" ",10); 6 �#out%,�"00000"+�~B%,6)+" "+�"00000"+�~C%,6)+" "; & �#out%,�"00000"+�~info%(n%,2),6); B%=&18000:C%=B%+info%(n%,2) &( �#out%," CRC= "+�"000"+�~� crc%,4); 0 �#out%:out%=-1 :� D*Set Sys$ReturnCode 0 N� X b� �scan(src$) l0� P%:ș "OS_GBPB",10,src$,q%,1,,256 � ,,,,P% vȕ P%>-1 � Ȏ q%!16 � �2 � 1:file$(file%,0)=�src$+"."+�0(q%+20),from%) �* file$(file%,1)=�name(file$(file%,0)) �& � vb% � � "Found "file$(file%,0) �I info%(file%,0)=!q%:info%(file%,1)=q%!4:info%(file%,2)=q%!8:file%+=1 �$ � 2,3:�scan(src$+"."+�0(q%+20)) � � �. ș "OS_GBPB",10,src$,q%,1,P%,256 � ,,,,P% �� �� � �� �0(A%) �� A%<256 � A%=q%!A% *� A% � � a$:ș "OS_WriteN",A% � a$:=a$ ="" � �spc(a$) *"ȕ a$>"" � � a$=32:a$=�a$,2):� 4=a$ > H� �name(a$) R5� n%,c$,i%:i%=�a$,"."):� i%=0 � i%>2 � a$="$."+a$ \7� � a$>9 � � 1,"Cannot convert filename """+a$+"""" f� n%=1 � � a$ p c$=�a$,n%,1):i%=�"[}{)",c$) z! � i% � �a$,n%,1)=�"$%&^",i%) �� �=a$ � �� �case(a$) �� a$="" � ="" �� n%,C% �� n%=1 � � a$ �: C%=� �a$,n%,1):� C%>96 � C%<123 � �a$,n%,1)=� (C%-32) �� �=a$ �
00000000 0d 00 0a 1e f4 20 41 64 64 2f 69 6e 66 20 30 2e |..... Add/inf 0.| 00000010 30 33 2c 20 36 20 41 70 72 20 31 39 39 36 0d 00 |03, 6 Apr 1996..| 00000020 14 43 f4 20 43 6f 6e 76 65 72 74 20 66 69 6c 65 |.C. Convert file| 00000030 73 20 66 72 6f 6d 20 61 20 64 69 72 65 63 74 6f |s from a directo| 00000040 72 79 20 28 6f 72 20 61 72 63 68 69 76 65 29 20 |ry (or archive) | 00000050 66 72 6f 6d 20 41 63 6f 72 6e 20 66 6f 72 6d 61 |from Acorn forma| 00000060 74 0d 00 1e 15 f4 20 20 74 6f 20 2e 69 6e 66 20 |t..... to .inf | 00000070 66 6f 72 6d 61 74 0d 00 28 14 f4 20 42 79 20 44 |format..(.. By D| 00000080 61 72 72 65 6e 20 53 61 6c 74 0d 00 32 04 0d 00 |arren Salt..2...| 00000090 3c 14 6f 75 74 25 3d 2d 31 3a e0 3d 26 31 38 30 |<.out%=-1:.=&180| 000000a0 30 30 0d 00 46 4d ee 20 85 20 c8 99 20 22 58 4f |00..FM. . .. "XO| 000000b0 53 5f 46 69 6e 64 22 2c 2c 6f 75 74 25 3a 41 25 |S_Find",,out%:A%| 000000c0 3d 31 3a c8 99 20 22 58 4f 53 5f 43 4c 49 22 2c |=1:.. "XOS_CLI",| 000000d0 22 53 65 74 20 53 79 73 24 52 65 74 75 72 6e 43 |"Set Sys$ReturnC| 000000e0 6f 64 65 20 31 22 3a 85 20 a2 20 9f 2c f6 24 0d |ode 1":. . .,.$.| 000000f0 00 50 2d de 20 71 25 20 35 31 32 2c 66 69 6c 65 |.P-. q% 512,file| 00000100 24 28 37 36 2c 31 29 2c 69 6e 66 6f 25 28 37 36 |$(76,1),info%(76| 00000110 2c 32 29 2c 63 72 63 25 20 32 35 36 0d 00 5a 0b |,2),crc% 256..Z.| 00000120 50 25 3d 63 72 63 25 0d 00 64 0a 5b 4f 50 54 20 |P%=crc%..d.[OPT | 00000130 32 0d 00 6e 0c 4d 4f 56 20 30 2c 23 30 0d 00 78 |2..n.MOV 0,#0..x| 00000140 1c 2e 6d 6c 6f 6f 70 20 54 45 51 20 31 2c 32 3a |..mloop TEQ 1,2:| 00000150 ec 51 53 20 50 43 2c 31 34 0d 00 82 29 4c 44 52 |.QS PC,14...)LDR| 00000160 42 20 33 2c 5b 31 5d 2c 23 31 3a 82 20 30 2c 30 |B 3,[1],#1:. 0,0| 00000170 2c 33 2c 4c 53 4c 20 23 38 3a 4d 4f 56 20 33 2c |,3,LSL #8:MOV 3,| 00000180 23 38 0d 00 8c 42 2e 6c 70 20 54 53 54 20 30 2c |#8...B.lp TST 0,| 00000190 23 33 32 37 36 38 3a 82 4e 45 20 30 2c 30 2c 23 |#32768:.NE 0,0,#| 000001a0 26 38 31 30 3a 4d 4f 56 20 30 2c 30 2c 4c 53 4c |&810:MOV 0,0,LSL| 000001b0 20 23 31 3a 84 52 20 30 2c 30 2c 30 2c 4c 53 52 | #1:.R 0,0,0,LSR| 000001c0 20 23 31 36 0d 00 96 2d 42 49 43 20 30 2c 30 2c | #16...-BIC 0,0,| 000001d0 23 36 35 35 33 36 3a 53 55 42 53 20 33 2c 33 2c |#65536:SUBS 3,3,| 000001e0 23 31 3a 42 4e 45 20 6c 70 3a 42 20 6d 6c 6f 6f |#1:BNE lp:B mloo| 000001f0 70 0d 00 a0 50 5d c8 99 20 22 4f 53 5f 47 65 74 |p...P].. "OS_Get| 00000200 45 6e 76 22 20 b8 20 65 25 3a c8 99 20 22 58 4f |Env" . e%:.. "XO| 00000210 53 5f 52 65 61 64 41 72 67 73 22 2c 22 2c 71 75 |S_ReadArgs",",qu| 00000220 69 74 2c 2c 2c 76 2f 73 2c 77 2f 73 2c 61 2f 73 |it,,,v/s,w/s,a/s| 00000230 22 2c 65 25 2c 71 25 2c 35 31 32 20 b8 20 3b 46 |",e%,q%,512 . ;F| 00000240 25 0d 00 b4 1d e7 20 46 25 20 80 20 31 20 8c 20 |%..... F% . 1 . | 00000250 71 25 21 38 3d 30 3a 71 25 21 31 32 3d 30 0d 00 |q%!8=0:q%!12=0..| 00000260 be 35 73 72 63 24 3d a4 30 28 38 29 3a 64 73 74 |.5src$=.0(8):dst| 00000270 24 3d a4 30 28 31 32 29 3a 76 62 25 3d 71 25 21 |$=.0(12):vb%=q%!| 00000280 31 36 3c 3e 30 3a 61 72 63 25 3d 71 25 21 32 34 |16<>0:arc%=q%!24| 00000290 3c 3e 30 0d 00 c8 63 e7 20 73 72 63 24 3d 22 22 |<>0...c. src$=""| 000002a0 20 84 20 64 73 74 24 3d 22 22 20 84 20 28 46 25 | . dst$="" . (F%| 000002b0 20 80 20 31 29 20 8c 20 85 20 32 32 30 2c 22 53 | . 1) . . 220,"S| 000002c0 79 6e 74 61 78 3a 20 41 64 64 2f 69 6e 66 20 3c |yntax: Add/inf <| 000002d0 73 6f 75 72 63 65 20 64 69 72 3e 20 3c 64 65 73 |source dir> <des| 000002e0 74 20 64 69 72 3e 20 5b 2d 76 5d 20 5b 2d 77 5d |t dir> [-v] [-w]| 000002f0 20 5b 2d 61 5d 22 0d 00 d2 0c e7 20 61 72 63 25 | [-a]"..... arc%| 00000300 20 8c 0d 00 dc 27 20 c8 99 20 22 58 4f 53 5f 4d | ....' .. "XOS_M| 00000310 6f 64 75 6c 65 22 2c 31 38 2c 22 53 70 61 72 6b |odule",18,"Spark| 00000320 46 53 22 20 b8 20 3b 41 25 0d 00 e6 2e 20 e7 20 |FS" . ;A%.... . | 00000330 41 25 20 80 20 31 20 8b 20 c8 99 20 22 58 4f 53 |A% . 1 . .. "XOS| 00000340 5f 4d 6f 64 75 6c 65 22 2c 31 38 2c 22 5a 69 70 |_Module",18,"Zip| 00000350 22 20 b8 20 3b 41 25 0d 00 f0 16 20 e7 20 41 25 |" . ;A%.... . A%| 00000360 20 80 20 31 20 8c 20 61 72 63 25 3d a3 0d 00 fa | . 1 . arc%=....| 00000370 05 cd 0d 01 04 3f e7 20 61 72 63 25 20 8c 20 ff |.....?. arc% . .| 00000380 20 22 53 70 61 72 6b 46 53 43 72 65 61 74 65 20 | "SparkFSCreate | 00000390 34 20 22 2b 64 73 74 24 3a 8b 20 c8 99 20 22 4f |4 "+dst$:. .. "O| 000003a0 53 5f 46 69 6c 65 22 2c 38 2c 64 73 74 24 2c 37 |S_File",8,dst$,7| 000003b0 37 0d 01 0e 3f c8 99 20 22 58 4f 53 5f 46 69 6c |7...?.. "XOS_Fil| 000003c0 65 22 2c 35 2c 64 73 74 24 20 b8 20 41 25 3a e7 |e",5,dst$ . A%:.| 000003d0 20 41 25 3c 3d 31 20 8c 20 c8 99 20 22 4f 53 5f | A%<=1 . .. "OS_| 000003e0 46 69 6c 65 22 2c 31 39 2c 64 73 74 24 2c 41 25 |File",19,dst$,A%| 000003f0 0d 01 18 25 e7 20 41 25 3e 33 20 8c 20 c8 99 20 |...%. A%>3 . .. | 00000400 22 4f 53 5f 47 65 6e 65 72 61 74 65 45 72 72 6f |"OS_GenerateErro| 00000410 72 22 2c 41 25 0d 01 22 24 c8 99 20 22 4f 53 5f |r",A%.."$.. "OS_| 00000420 46 69 6c 65 22 2c 35 2c 64 73 74 24 2b 22 2e 2a |File",5,dst$+".*| 00000430 22 20 b8 20 77 69 70 65 25 0d 01 2c 43 e7 20 77 |" . wipe%..,C. w| 00000440 69 70 65 25 3d 30 20 8b 20 e7 20 71 25 21 32 30 |ipe%=0 . . q%!20| 00000450 20 8b 20 85 20 31 2c 22 44 65 73 74 69 6e 61 74 | . . 1,"Destinat| 00000460 69 6f 6e 20 64 69 72 65 63 74 6f 72 79 20 69 73 |ion directory is| 00000470 20 6e 6f 74 20 65 6d 70 74 79 21 22 0d 01 36 26 | not empty!"..6&| 00000480 66 72 6f 6d 25 3d a9 20 73 72 63 24 2b 32 3a 66 |from%=. src$+2:f| 00000490 69 6c 65 25 3d 30 3a f2 73 63 61 6e 28 73 72 63 |ile%=0:.scan(src| 000004a0 24 29 0d 01 40 15 e7 20 77 69 70 65 25 20 80 20 |$)..@.. wipe% . | 000004b0 71 25 21 32 30 20 8c 0d 01 4a 2d 20 e7 20 76 62 |q%!20 ...J- . vb| 000004c0 25 20 8c 20 f1 20 22 57 69 70 69 6e 67 20 64 65 |% . . "Wiping de| 000004d0 73 74 69 6e 61 74 69 6f 6e 20 64 69 72 65 63 74 |stination direct| 000004e0 6f 72 79 22 0d 01 54 20 20 ff 20 22 57 69 70 65 |ory"..T . "Wipe| 000004f0 20 22 2b 64 73 74 24 2b 22 2e 2a 20 7e 43 7e 46 | "+dst$+".* ~C~F| 00000500 52 7e 56 22 0d 01 5e 05 cd 0d 01 68 14 e3 20 6e |R~V"..^....h.. n| 00000510 25 3d 30 20 b8 20 66 69 6c 65 25 2d 31 0d 01 72 |%=0 . file%-1..r| 00000520 25 20 e7 20 76 62 25 20 8c 20 f1 20 22 43 6f 70 |% . vb% . . "Cop| 00000530 79 69 6e 67 20 22 66 69 6c 65 24 28 6e 25 2c 30 |ying "file$(n%,0| 00000540 29 3b 0d 01 7c 34 20 41 25 3d 69 6e 66 6f 25 28 |);..|4 A%=info%(| 00000550 6e 25 2c 30 29 3e 3e 38 3a e7 20 41 25 3c 30 20 |n%,0)>>8:. A%<0 | 00000560 8c 20 41 25 3d 41 25 20 80 20 26 46 46 46 3a 8b |. A%=A% . &FFF:.| 00000570 20 41 25 3d 2d 31 0d 01 86 36 20 42 25 3d 69 6e | A%=-1...6 B%=in| 00000580 66 6f 25 28 6e 25 2c 30 29 20 80 20 26 46 46 46 |fo%(n%,0) . &FFF| 00000590 46 46 46 3a 43 25 3d 69 6e 66 6f 25 28 6e 25 2c |FFF:C%=info%(n%,| 000005a0 31 29 20 80 20 26 46 46 46 46 46 46 0d 01 90 0c |1) . &FFFFFF....| 000005b0 20 c8 8e 20 41 25 20 ca 0d 01 9a 36 20 c9 20 26 | .. A% ....6 . &| 000005c0 46 46 42 3a 42 25 3d 26 46 46 31 39 30 30 3a 43 |FFB:B%=&FF1900:C| 000005d0 25 3d 26 46 46 38 30 32 33 3a e7 20 76 62 25 20 |%=&FF8023:. vb% | 000005e0 8c 20 f1 20 22 20 28 42 41 53 49 43 29 22 0d 01 |. . " (BASIC)"..| 000005f0 a4 30 20 c9 20 26 42 42 43 3a 42 25 3d 26 38 30 |.0 . &BBC:B%=&80| 00000600 30 30 3a 43 25 3d 26 38 30 30 30 3a e7 20 76 62 |00:C%=&8000:. vb| 00000610 25 20 8c 20 f1 20 22 20 28 52 4f 4d 29 22 0d 01 |% . . " (ROM)"..| 00000620 ae 36 20 c9 20 26 46 46 45 3a 42 25 3d 26 46 46 |.6 . &FFE:B%=&FF| 00000630 46 46 46 46 3a 43 25 3d 26 46 46 46 46 46 46 3a |FFFF:C%=&FFFFFF:| 00000640 e7 20 76 62 25 20 8c 20 f1 20 22 20 28 2a 45 78 |. vb% . . " (*Ex| 00000650 65 63 29 22 0d 01 b8 35 20 7f 3a e7 20 76 62 25 |ec)"...5 .:. vb%| 00000660 20 8c 20 f1 20 22 20 28 22 3b 7e 69 6e 66 6f 25 | . . " (";~info%| 00000670 28 6e 25 2c 30 29 22 2c 22 3b 7e 69 6e 66 6f 25 |(n%,0)",";~info%| 00000680 28 6e 25 2c 31 29 22 29 22 0d 01 c2 06 20 cb 0d |(n%,1)")".... ..| 00000690 01 cc 35 20 c8 99 20 22 57 69 6d 70 5f 53 6c 6f |..5 .. "Wimp_Slo| 000006a0 74 53 69 7a 65 22 2c 26 31 30 30 30 30 2b 69 6e |tSize",&10000+in| 000006b0 66 6f 25 28 6e 25 2c 32 29 2c 2d 31 2c 2d 31 20 |fo%(n%,2),-1,-1 | 000006c0 b8 20 41 25 0d 01 d6 48 20 e7 20 41 25 3c 26 31 |. A%...H . A%<&1| 000006d0 30 30 30 30 2b 69 6e 66 6f 25 28 6e 25 2c 32 29 |0000+info%(n%,2)| 000006e0 20 8c 20 85 20 31 2c 22 4e 6f 74 20 65 6e 6f 75 | . . 1,"Not enou| 000006f0 67 68 20 6d 65 6d 6f 72 79 20 74 6f 20 63 61 6c |gh memory to cal| 00000700 63 75 6c 61 74 65 20 43 52 43 73 22 0d 01 e0 42 |culate CRCs"...B| 00000710 20 c8 99 20 22 4f 53 5f 46 69 6c 65 22 2c 32 35 | .. "OS_File",25| 00000720 35 2c 73 72 63 24 2b 22 2e 22 2b 66 69 6c 65 24 |5,src$+"."+file$| 00000730 28 6e 25 2c 30 29 2c 26 31 38 30 30 30 3a 6e 24 |(n%,0),&18000:n$| 00000740 3d c2 22 30 30 22 2b c3 20 6e 25 2c 33 29 0d 01 |=."00"+. n%,3)..| 00000750 ea 50 20 c8 99 20 22 4f 53 5f 46 69 6c 65 22 2c |.P .. "OS_File",| 00000760 2c 64 73 74 24 2b 22 2e 22 2b 6e 24 2c 69 6e 66 |,dst$+"."+n$,inf| 00000770 6f 25 28 6e 25 2c 30 29 2c 69 6e 66 6f 25 28 6e |o%(n%,0),info%(n| 00000780 25 2c 31 29 2c 26 31 38 30 30 30 2c 26 31 38 30 |%,1),&18000,&180| 00000790 30 30 2b 69 6e 66 6f 25 28 6e 25 2c 32 29 0d 01 |00+info%(n%,2)..| 000007a0 f4 2b 20 6f 75 74 25 3d ae 20 28 64 73 74 24 2b |.+ out%=. (dst$+| 000007b0 22 2e 22 2b c2 22 30 30 22 2b c3 20 6e 25 2c 33 |"."+."00"+. n%,3| 000007c0 29 2b 22 2f 69 6e 66 22 29 0d 01 fe 2a 20 d5 23 |)+"/inf")...* .#| 000007d0 6f 75 74 25 2c c0 66 69 6c 65 24 28 6e 25 2c 31 |out%,.file$(n%,1| 000007e0 29 2b 22 20 20 20 20 20 20 20 20 20 20 22 2c 31 |)+" ",1| 000007f0 30 29 3b 0d 02 08 36 20 d5 23 6f 75 74 25 2c c2 |0);...6 .#out%,.| 00000800 22 30 30 30 30 30 22 2b c3 7e 42 25 2c 36 29 2b |"00000"+.~B%,6)+| 00000810 22 20 22 2b c2 22 30 30 30 30 30 22 2b c3 7e 43 |" "+."00000"+.~C| 00000820 25 2c 36 29 2b 22 20 22 3b 0d 02 12 26 20 d5 23 |%,6)+" ";...& .#| 00000830 6f 75 74 25 2c c2 22 30 30 30 30 30 22 2b c3 7e |out%,."00000"+.~| 00000840 69 6e 66 6f 25 28 6e 25 2c 32 29 2c 36 29 3b 0d |info%(n%,2),6);.| 00000850 02 1c 20 20 42 25 3d 26 31 38 30 30 30 3a 43 25 |.. B%=&18000:C%| 00000860 3d 42 25 2b 69 6e 66 6f 25 28 6e 25 2c 32 29 0d |=B%+info%(n%,2).| 00000870 02 26 28 20 d5 23 6f 75 74 25 2c 22 20 43 52 43 |.&( .#out%," CRC| 00000880 3d 20 22 2b c2 22 30 30 30 22 2b c3 7e ba 20 63 |= "+."000"+.~. c| 00000890 72 63 25 2c 34 29 3b 0d 02 30 13 20 d9 23 6f 75 |rc%,4);..0. .#ou| 000008a0 74 25 3a 6f 75 74 25 3d 2d 31 0d 02 3a 05 ed 0d |t%:out%=-1..:...| 000008b0 02 44 19 2a 53 65 74 20 53 79 73 24 52 65 74 75 |.D.*Set Sys$Retu| 000008c0 72 6e 43 6f 64 65 20 30 0d 02 4e 05 e0 0d 02 58 |rnCode 0..N....X| 000008d0 04 0d 02 62 11 dd 20 f2 73 63 61 6e 28 73 72 63 |...b.. .scan(src| 000008e0 24 29 0d 02 6c 30 ea 20 50 25 3a c8 99 20 22 4f |$)..l0. P%:.. "O| 000008f0 53 5f 47 42 50 42 22 2c 31 30 2c 73 72 63 24 2c |S_GBPB",10,src$,| 00000900 71 25 2c 31 2c 2c 32 35 36 20 b8 20 2c 2c 2c 2c |q%,1,,256 . ,,,,| 00000910 50 25 0d 02 76 0c c8 95 20 50 25 3e 2d 31 0d 02 |P%..v... P%>-1..| 00000920 80 0f 20 c8 8e 20 71 25 21 31 36 20 ca 0d 02 8a |.. .. q%!16 ....| 00000930 32 20 c9 20 31 3a 66 69 6c 65 24 28 66 69 6c 65 |2 . 1:file$(file| 00000940 25 2c 30 29 3d c1 73 72 63 24 2b 22 2e 22 2b a4 |%,0)=.src$+"."+.| 00000950 30 28 71 25 2b 32 30 29 2c 66 72 6f 6d 25 29 0d |0(q%+20),from%).| 00000960 02 94 2a 20 20 66 69 6c 65 24 28 66 69 6c 65 25 |..* file$(file%| 00000970 2c 31 29 3d a4 6e 61 6d 65 28 66 69 6c 65 24 28 |,1)=.name(file$(| 00000980 66 69 6c 65 25 2c 30 29 29 0d 02 9e 26 20 20 e7 |file%,0))...& .| 00000990 20 76 62 25 20 8c 20 f1 20 22 46 6f 75 6e 64 20 | vb% . . "Found | 000009a0 22 66 69 6c 65 24 28 66 69 6c 65 25 2c 30 29 0d |"file$(file%,0).| 000009b0 02 a8 49 20 20 69 6e 66 6f 25 28 66 69 6c 65 25 |..I info%(file%| 000009c0 2c 30 29 3d 21 71 25 3a 69 6e 66 6f 25 28 66 69 |,0)=!q%:info%(fi| 000009d0 6c 65 25 2c 31 29 3d 71 25 21 34 3a 69 6e 66 6f |le%,1)=q%!4:info| 000009e0 25 28 66 69 6c 65 25 2c 32 29 3d 71 25 21 38 3a |%(file%,2)=q%!8:| 000009f0 66 69 6c 65 25 2b 3d 31 0d 02 b2 24 20 c9 20 32 |file%+=1...$ . 2| 00000a00 2c 33 3a f2 73 63 61 6e 28 73 72 63 24 2b 22 2e |,3:.scan(src$+".| 00000a10 22 2b a4 30 28 71 25 2b 32 30 29 29 0d 02 bc 06 |"+.0(q%+20))....| 00000a20 20 cb 0d 02 c6 2e 20 c8 99 20 22 4f 53 5f 47 42 | ..... .. "OS_GB| 00000a30 50 42 22 2c 31 30 2c 73 72 63 24 2c 71 25 2c 31 |PB",10,src$,q%,1| 00000a40 2c 50 25 2c 32 35 36 20 b8 20 2c 2c 2c 2c 50 25 |,P%,256 . ,,,,P%| 00000a50 0d 02 d0 05 ce 0d 02 da 05 e1 0d 02 e4 04 0d 02 |................| 00000a60 ee 0c dd 20 a4 30 28 41 25 29 0d 02 f8 17 e7 20 |... .0(A%)..... | 00000a70 41 25 3c 32 35 36 20 8c 20 41 25 3d 71 25 21 41 |A%<256 . A%=q%!A| 00000a80 25 0d 03 02 2a e7 20 41 25 20 8c 20 ea 20 61 24 |%...*. A% . . a$| 00000a90 3a c8 99 20 22 4f 53 5f 57 72 69 74 65 4e 22 2c |:.. "OS_WriteN",| 00000aa0 41 25 20 b8 20 61 24 3a 3d 61 24 0d 03 0c 07 3d |A% . a$:=a$....=| 00000ab0 22 22 0d 03 16 04 0d 03 20 0e dd 20 a4 73 70 63 |""...... .. .spc| 00000ac0 28 61 24 29 0d 03 2a 22 c8 95 20 61 24 3e 22 22 |(a$)..*".. a$>""| 00000ad0 20 80 20 97 20 61 24 3d 33 32 3a 61 24 3d c1 61 | . . a$=32:a$=.a| 00000ae0 24 2c 32 29 3a ce 0d 03 34 07 3d 61 24 0d 03 3e |$,2):...4.=a$..>| 00000af0 04 0d 03 48 0f dd 20 a4 6e 61 6d 65 28 61 24 29 |...H.. .name(a$)| 00000b00 0d 03 52 35 ea 20 6e 25 2c 63 24 2c 69 25 3a 69 |..R5. n%,c$,i%:i| 00000b10 25 3d a7 61 24 2c 22 2e 22 29 3a e7 20 69 25 3d |%=.a$,"."):. i%=| 00000b20 30 20 84 20 69 25 3e 32 20 8c 20 61 24 3d 22 24 |0 . i%>2 . a$="$| 00000b30 2e 22 2b 61 24 0d 03 5c 37 e7 20 a9 20 61 24 3e |."+a$..\7. . a$>| 00000b40 39 20 8c 20 85 20 31 2c 22 43 61 6e 6e 6f 74 20 |9 . . 1,"Cannot | 00000b50 63 6f 6e 76 65 72 74 20 66 69 6c 65 6e 61 6d 65 |convert filename| 00000b60 20 22 22 22 2b 61 24 2b 22 22 22 22 0d 03 66 11 | """+a$+""""..f.| 00000b70 e3 20 6e 25 3d 31 20 b8 20 a9 20 61 24 0d 03 70 |. n%=1 . . a$..p| 00000b80 20 20 63 24 3d c1 61 24 2c 6e 25 2c 31 29 3a 69 | c$=.a$,n%,1):i| 00000b90 25 3d a7 22 5b 7d 7b 29 22 2c 63 24 29 0d 03 7a |%=."[}{)",c$)..z| 00000ba0 21 20 e7 20 69 25 20 8c 20 c1 61 24 2c 6e 25 2c |! . i% . .a$,n%,| 00000bb0 31 29 3d c1 22 24 25 26 5e 22 2c 69 25 29 0d 03 |1)=."$%&^",i%)..| 00000bc0 84 05 ed 0d 03 8e 07 3d 61 24 0d 03 98 04 0d 03 |.......=a$......| 00000bd0 a2 0f dd 20 a4 63 61 73 65 28 61 24 29 0d 03 ac |... .case(a$)...| 00000be0 11 e7 20 61 24 3d 22 22 20 8c 20 3d 22 22 0d 03 |.. a$="" . =""..| 00000bf0 b6 0b ea 20 6e 25 2c 43 25 0d 03 c0 11 e3 20 6e |... n%,C%..... n| 00000c00 25 3d 31 20 b8 20 a9 20 61 24 0d 03 ca 3a 20 43 |%=1 . . a$...: C| 00000c10 25 3d 97 20 c1 61 24 2c 6e 25 2c 31 29 3a e7 20 |%=. .a$,n%,1):. | 00000c20 43 25 3e 39 36 20 80 20 43 25 3c 31 32 33 20 8c |C%>96 . C%<123 .| 00000c30 20 c1 61 24 2c 6e 25 2c 31 29 3d bd 20 28 43 25 | .a$,n%,1)=. (C%| 00000c40 2d 33 32 29 0d 03 d4 05 ed 0d 03 de 07 3d 61 24 |-32).........=a$| 00000c50 0d ff |..| 00000c52