Home » Personal collection » Acorn ADFS disks » Archimedes » Dominic_4.ADF » !BEEBARC/DFS_SPlit

!BEEBARC/DFS_SPlit

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 » Archimedes » Dominic_4.ADF
Filename: !BEEBARC/DFS_SPlit
Read OK:
File size: 0C15 bytes
Load address: FFFFFB46
Exec address: E7B99870
Duplicates

There are 2 duplicate copies of this file in the archive:

File contents
   10REM > DFS_Split 0.10, 2 Apr 1996
   20
   30REM Unpacks DFS disk images
   40
   50REM Written by Darren Salt
   60REM Inspired on ArcSplit by W.H.Scholten (with modifications by J.M.Simpson)
   70REM (As it stands, it's more suited to 6502Em than 65Host)
   80
   90ON ERROR SYS "XOS_CLI","Set Sys$ReturnCode 1":ERROR EXT 220,"Syntax: DFS_Split <source file> <dest dir> [-side :0|:2|:0:2] [-65Host] [-v]"
  100DIM conv% 128,cmd% 256
  110SYS "OS_GetEnv" TO env%
  120SYS "XOS_ReadArgs",",quit,,o,side,65host/s,v/s",env%,cmd%,256 TO ;F%
  130in$=FN0(8):outd$=FN0(12):dsd%=cmd%!16<>0:acn%=cmd%!20:vb%=cmd%!24:side%=-1
  140IF dsd% THEN
  150 CASE FN0(16) OF
  160 WHEN "0",":0":side%=0
  170 WHEN "2",":2":side%=1
  180 WHEN "02",":0:2":side%=2
  190 OTHERWISE:ERROR
  200 ENDCASE
  210ELSE side%=0
  220ENDIF
  230IF in$="" OR outd$="" THEN ERROR
  240$conv%="                                '!]![}{'()!+,-./0123456789:;<=>?<ABCDEFGHIJKLMNOPQRSTUVWXYZ[\])_`abcdefghijklmnopqrstuvwxyz{>}~."
  250IF acn% ELSE conv%?36=36
  260O%=-1:ON ERROR SYS "XOS_Find",,O%:SYS "XOS_CLI","Set Sys$ReturnCode 1":ERROR EXT ERR,REPORT$
  270SYS "OS_File",5,in$ TO A%,,,,L%:IF A%<>1 THEN SYS "OS_File",19,in$,A%
  280SYS "OS_File",8,outd$,77
  290DIM image% L%:SYS "OS_File",255,in$,image%:IF side%=1 THEN image%+=&A00
  300IF vb% THEN
  310 PRINT "Unpacking "in$;
  320 CASE side% OF
  330 WHEN -1:PRINT " (single sided image)";
  340 WHEN 0:PRINT " (side :0 of image)";
  350 WHEN 1:PRINT " (side :2 of image)";
  360 WHEN 2:PRINT " (both sides of image)";
  370 ENDCASE
  380 PRINT " to "outd$
  390ENDIF
  400FOR s%=(1 AND side%=1) TO (1 AND side%>0)
  410 IF acn% THEN out$=outd$+"."+STR$ (s%*2):SYS "OS_File",8,out$:ELSE out$=outd$
  420 fptr%=image%+8:IF vb% AND side%=2 THEN PRINT "Side :";s%*2
  430 WHILE fptr%<image%+255 AND ?fptr%
  440  name$="       ":qual$=CHR$ conv%?(fptr%?7 AND 127):n%=6
  450  WHILE fptr%?n%=32 AND n%:n%-=1:ENDWHILE
  460  WHILE n%>-1:MID$(name$,n%+1,1)=CHR$ conv%?(fptr%?n% AND 127):n%-=1:ENDWHILE
  470  IF acn%=FALSE THEN
  480   IF qual$<>"$" THEN SYS "OS_File",8,out$+"."+qual$
  490   qual$+="."
  500  ENDIF
  510  load%=fptr%!256 AND &FFFF:exec%=fptr%!258 AND &FFFF
  520  length%=fptr%!260 AND &FFFF:sector%=(fptr%?262 AND 3)<<16 OR fptr%?263<<8
  530  IF vb% THEN
  540   PRINT "Found: "LEFT$(CHR$ (fptr%?7 AND 127)+"."+name$+"           ",12);
  550   PRINT ", saving as ";
  560   PRINT LEFT$(qual$+LEFT$(".",1 AND acn%)+name$+"           ",12);
  570   PRINT RIGHT$("000"+STR$~load%,4)" "RIGHT$("000"+STR$~exec%,4);
  580   PRINT " "RIGHT$("000"+STR$~length%,4)" "RIGHT$("00"+STR$~(sector%/256),3);
  590  ENDIF
  600  IF qual$="$." THEN qual$=""
  610  name$=out$+"."+qual$+name$
  620  IF dsd% THEN
  630   L%=image%+(sector% DIV &A00)*&1400+(sector% MOD &A00)
  640   F%=&A00-(sector% MOD &A00):IF F%>length% THEN F%=length%
  650   O%=OPENOUT name$
  660   WHILE length%
  670    SYS "OS_GBPB",2,O%,L%,F%,PTR#O%
  680    L%+=F%+&A00:length%-=F%:F%=&A00:IF F%>length% THEN F%=length%
  690   ENDWHILE
  700   CLOSE#O%:O%=-1
  710   IF exec%=&801F OR exec%=&8023 OR exec%=&802B THEN
  720    IF vb% THEN PRINT " (BASIC)";
  730    SYS "OS_File",18,name$,&FFB
  740   ELSE SYS "OS_File",1,name$,load%,exec%,,3
  750   ENDIF
  760  ELSE L%=image%+sector%
  770   IF exec%=&801F OR exec%=&8023 OR exec%=&802B THEN
  780    IF vb% THEN PRINT " (BASIC)";
  790    SYS "OS_File",10,name$,&FFB,,L%,L%+length%
  800   ELSE SYS "OS_File",0,name$,load%,exec%,L%,L%+length%
  810   ENDIF
  820  ENDIF
  830  IF vb% THEN PRINT
  840  fptr%+=8
  850 ENDWHILE
  860 image%+=&A00
  870NEXT
  880*Set Sys$ReturnCode 0
  890END
  900
  910DEF FN0(A%)
  920IF A%>255 ELSE IF cmd%!A% THEN A%=cmd%!A%:ELSE =""
  930SYS "OS_WriteN",A% TO a$
  940=a$

"� > DFS_Split 0.10, 2 Apr 1996

� Unpacks DFS disk images
(
2� Written by Darren Salt
<N� Inspired on ArcSplit by W.H.Scholten (with modifications by J.M.Simpson)
F<� (As it stands, it's more suited to 6502Em than 65Host)
P
Z�� � ș "XOS_CLI","Set Sys$ReturnCode 1":� � 220,"Syntax: DFS_Split <source file> <dest dir> [-side :0|:2|:0:2] [-65Host] [-v]"
d� conv% 128,cmd% 256
nș "OS_GetEnv" � env%
xFș "XOS_ReadArgs",",quit,,o,side,65host/s,v/s",env%,cmd%,256 � ;F%
�Lin$=�0(8):outd$=�0(12):dsd%=cmd%!16<>0:acn%=cmd%!20:vb%=cmd%!24:side%=-1
�� dsd% �
� Ȏ �0(16) �
� � "0",":0":side%=0
� � "2",":2":side%=1
� � "02",":0:2":side%=2
� :�
� �
�
� side%=0
��
�� in$="" � outd$="" � �
�$conv%="                                '!]![}{'()!+,-./0123456789:;<=>?<ABCDEFGHIJKLMNOPQRSTUVWXYZ[\])_`abcdefghijklmnopqrstuvwxyz{>}~."
�� acn% � conv%?36=36
LO%=-1:� � ș "XOS_Find",,O%:ș "XOS_CLI","Set Sys$ReturnCode 1":� � �,�$
Bș "OS_File",5,in$ � A%,,,,L%:� A%<>1 � ș "OS_File",19,in$,A%
ș "OS_File",8,outd$,77
"D� image% L%:ș "OS_File",255,in$,image%:� side%=1 � image%+=&A00
,� vb% �
6 � "Unpacking "in$;
@ Ȏ side% �
J$ � -1:� " (single sided image)";
T! � 0:� " (side :0 of image)";
^! � 1:� " (side :2 of image)";
h$ � 2:� " (both sides of image)";
r �
| � " to "outd$
��
�&� s%=(1 � side%=1) � (1 � side%>0)
�F � acn% � out$=outd$+"."+� (s%*2):ș "OS_File",8,out$:� out$=outd$
�5 fptr%=image%+8:� vb% � side%=2 � � "Side :";s%*2
�! ȕ fptr%<image%+255 � ?fptr%
�8  name$="       ":qual$=� conv%?(fptr%?7 � 127):n%=6
�!  ȕ fptr%?n%=32 � n%:n%-=1:�
�>  ȕ n%>-1:�name$,n%+1,1)=� conv%?(fptr%?n% � 127):n%-=1:�
�  � acn%=� �
�3   � qual$<>"$" � ș "OS_File",8,out$+"."+qual$
�   qual$+="."
�  �
�5  load%=fptr%!256 � &FFFF:exec%=fptr%!258 � &FFFF
J  length%=fptr%!260 � &FFFF:sector%=(fptr%?262 � 3)<<16 � fptr%?263<<8

  � vb% �
A   � "Found: "�� (fptr%?7 � 127)+"."+name$+"           ",12);
&   � ", saving as ";
07   � �qual$+�".",1 � acn%)+name$+"           ",12);
:/   � �"000"+�~load%,4)" "�"000"+�~exec%,4);
D;   � " "�"000"+�~length%,4)" "�"00"+�~(sector%/256),3);
N  �
X  � qual$="$." � qual$=""
b   name$=out$+"."+qual$+name$
l  � dsd% �
v8   L%=image%+(sector% � &A00)*&1400+(sector% � &A00)
�9   F%=&A00-(sector% � &A00):� F%>length% � F%=length%
�   O%=� name$
�   ȕ length%
�$    ș "OS_GBPB",2,O%,L%,F%,�#O%
�A    L%+=F%+&A00:length%-=F%:F%=&A00:� F%>length% � F%=length%
�   �
�   �#O%:O%=-1
�2   � exec%=&801F � exec%=&8023 � exec%=&802B �
�    � vb% � � " (BASIC)";
�"    ș "OS_File",18,name$,&FFB
�,   � ș "OS_File",1,name$,load%,exec%,,3
�   �
�  � L%=image%+sector%
2   � exec%=&801F � exec%=&8023 � exec%=&802B �
    � vb% � � " (BASIC)";
1    ș "OS_File",10,name$,&FFB,,L%,L%+length%
 7   � ș "OS_File",0,name$,load%,exec%,L%,L%+length%
*   �
4  �
>  � vb% � �
H  fptr%+=8
R �
\ image%+=&A00
f�
p*Set Sys$ReturnCode 0
z�
�
�� �0(A%)
�+� A%>255 � � cmd%!A% � A%=cmd%!A%:� =""
�ș "OS_WriteN",A% � a$
�=a$
�
00000000  0d 00 0a 22 f4 20 3e 20  44 46 53 5f 53 70 6c 69  |...". > DFS_Spli|
00000010  74 20 30 2e 31 30 2c 20  32 20 41 70 72 20 31 39  |t 0.10, 2 Apr 19|
00000020  39 36 0d 00 14 04 0d 00  1e 1d f4 20 55 6e 70 61  |96......... Unpa|
00000030  63 6b 73 20 44 46 53 20  64 69 73 6b 20 69 6d 61  |cks DFS disk ima|
00000040  67 65 73 0d 00 28 04 0d  00 32 1c f4 20 57 72 69  |ges..(...2.. Wri|
00000050  74 74 65 6e 20 62 79 20  44 61 72 72 65 6e 20 53  |tten by Darren S|
00000060  61 6c 74 0d 00 3c 4e f4  20 49 6e 73 70 69 72 65  |alt..<N. Inspire|
00000070  64 20 6f 6e 20 41 72 63  53 70 6c 69 74 20 62 79  |d on ArcSplit by|
00000080  20 57 2e 48 2e 53 63 68  6f 6c 74 65 6e 20 28 77  | W.H.Scholten (w|
00000090  69 74 68 20 6d 6f 64 69  66 69 63 61 74 69 6f 6e  |ith modification|
000000a0  73 20 62 79 20 4a 2e 4d  2e 53 69 6d 70 73 6f 6e  |s by J.M.Simpson|
000000b0  29 0d 00 46 3c f4 20 28  41 73 20 69 74 20 73 74  |)..F<. (As it st|
000000c0  61 6e 64 73 2c 20 69 74  27 73 20 6d 6f 72 65 20  |ands, it's more |
000000d0  73 75 69 74 65 64 20 74  6f 20 36 35 30 32 45 6d  |suited to 6502Em|
000000e0  20 74 68 61 6e 20 36 35  48 6f 73 74 29 0d 00 50  | than 65Host)..P|
000000f0  04 0d 00 5a 82 ee 20 85  20 c8 99 20 22 58 4f 53  |...Z.. . .. "XOS|
00000100  5f 43 4c 49 22 2c 22 53  65 74 20 53 79 73 24 52  |_CLI","Set Sys$R|
00000110  65 74 75 72 6e 43 6f 64  65 20 31 22 3a 85 20 a2  |eturnCode 1":. .|
00000120  20 32 32 30 2c 22 53 79  6e 74 61 78 3a 20 44 46  | 220,"Syntax: DF|
00000130  53 5f 53 70 6c 69 74 20  3c 73 6f 75 72 63 65 20  |S_Split <source |
00000140  66 69 6c 65 3e 20 3c 64  65 73 74 20 64 69 72 3e  |file> <dest dir>|
00000150  20 5b 2d 73 69 64 65 20  3a 30 7c 3a 32 7c 3a 30  | [-side :0|:2|:0|
00000160  3a 32 5d 20 5b 2d 36 35  48 6f 73 74 5d 20 5b 2d  |:2] [-65Host] [-|
00000170  76 5d 22 0d 00 64 18 de  20 63 6f 6e 76 25 20 31  |v]"..d.. conv% 1|
00000180  32 38 2c 63 6d 64 25 20  32 35 36 0d 00 6e 19 c8  |28,cmd% 256..n..|
00000190  99 20 22 4f 53 5f 47 65  74 45 6e 76 22 20 b8 20  |. "OS_GetEnv" . |
000001a0  65 6e 76 25 0d 00 78 46  c8 99 20 22 58 4f 53 5f  |env%..xF.. "XOS_|
000001b0  52 65 61 64 41 72 67 73  22 2c 22 2c 71 75 69 74  |ReadArgs",",quit|
000001c0  2c 2c 6f 2c 73 69 64 65  2c 36 35 68 6f 73 74 2f  |,,o,side,65host/|
000001d0  73 2c 76 2f 73 22 2c 65  6e 76 25 2c 63 6d 64 25  |s,v/s",env%,cmd%|
000001e0  2c 32 35 36 20 b8 20 3b  46 25 0d 00 82 4c 69 6e  |,256 . ;F%...Lin|
000001f0  24 3d a4 30 28 38 29 3a  6f 75 74 64 24 3d a4 30  |$=.0(8):outd$=.0|
00000200  28 31 32 29 3a 64 73 64  25 3d 63 6d 64 25 21 31  |(12):dsd%=cmd%!1|
00000210  36 3c 3e 30 3a 61 63 6e  25 3d 63 6d 64 25 21 32  |6<>0:acn%=cmd%!2|
00000220  30 3a 76 62 25 3d 63 6d  64 25 21 32 34 3a 73 69  |0:vb%=cmd%!24:si|
00000230  64 65 25 3d 2d 31 0d 00  8c 0c e7 20 64 73 64 25  |de%=-1..... dsd%|
00000240  20 8c 0d 00 96 10 20 c8  8e 20 a4 30 28 31 36 29  | ..... .. .0(16)|
00000250  20 ca 0d 00 a0 17 20 c9  20 22 30 22 2c 22 3a 30  | ..... . "0",":0|
00000260  22 3a 73 69 64 65 25 3d  30 0d 00 aa 17 20 c9 20  |":side%=0.... . |
00000270  22 32 22 2c 22 3a 32 22  3a 73 69 64 65 25 3d 31  |"2",":2":side%=1|
00000280  0d 00 b4 1a 20 c9 20 22  30 32 22 2c 22 3a 30 3a  |.... . "02",":0:|
00000290  32 22 3a 73 69 64 65 25  3d 32 0d 00 be 08 20 7f  |2":side%=2.... .|
000002a0  3a 85 0d 00 c8 06 20 cb  0d 00 d2 0d cc 20 73 69  |:..... ...... si|
000002b0  64 65 25 3d 30 0d 00 dc  05 cd 0d 00 e6 1b e7 20  |de%=0.......... |
000002c0  69 6e 24 3d 22 22 20 84  20 6f 75 74 64 24 3d 22  |in$="" . outd$="|
000002d0  22 20 8c 20 85 0d 00 f0  8d 24 63 6f 6e 76 25 3d  |" . .....$conv%=|
000002e0  22 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |"               |
000002f0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000300  20 27 21 5d 21 5b 7d 7b  27 28 29 21 2b 2c 2d 2e  | '!]![}{'()!+,-.|
00000310  2f 30 31 32 33 34 35 36  37 38 39 3a 3b 3c 3d 3e  |/0123456789:;<=>|
00000320  3f 3c 41 42 43 44 45 46  47 48 49 4a 4b 4c 4d 4e  |?<ABCDEFGHIJKLMN|
00000330  4f 50 51 52 53 54 55 56  57 58 59 5a 5b 5c 5d 29  |OPQRSTUVWXYZ[\])|
00000340  5f 60 61 62 63 64 65 66  67 68 69 6a 6b 6c 6d 6e  |_`abcdefghijklmn|
00000350  6f 70 71 72 73 74 75 76  77 78 79 7a 7b 3e 7d 7e  |opqrstuvwxyz{>}~|
00000360  2e 22 0d 00 fa 18 e7 20  61 63 6e 25 20 8b 20 63  |."..... acn% . c|
00000370  6f 6e 76 25 3f 33 36 3d  33 36 0d 01 04 4c 4f 25  |onv%?36=36...LO%|
00000380  3d 2d 31 3a ee 20 85 20  c8 99 20 22 58 4f 53 5f  |=-1:. . .. "XOS_|
00000390  46 69 6e 64 22 2c 2c 4f  25 3a c8 99 20 22 58 4f  |Find",,O%:.. "XO|
000003a0  53 5f 43 4c 49 22 2c 22  53 65 74 20 53 79 73 24  |S_CLI","Set Sys$|
000003b0  52 65 74 75 72 6e 43 6f  64 65 20 31 22 3a 85 20  |ReturnCode 1":. |
000003c0  a2 20 9f 2c f6 24 0d 01  0e 42 c8 99 20 22 4f 53  |. .,.$...B.. "OS|
000003d0  5f 46 69 6c 65 22 2c 35  2c 69 6e 24 20 b8 20 41  |_File",5,in$ . A|
000003e0  25 2c 2c 2c 2c 4c 25 3a  e7 20 41 25 3c 3e 31 20  |%,,,,L%:. A%<>1 |
000003f0  8c 20 c8 99 20 22 4f 53  5f 46 69 6c 65 22 2c 31  |. .. "OS_File",1|
00000400  39 2c 69 6e 24 2c 41 25  0d 01 18 1b c8 99 20 22  |9,in$,A%...... "|
00000410  4f 53 5f 46 69 6c 65 22  2c 38 2c 6f 75 74 64 24  |OS_File",8,outd$|
00000420  2c 37 37 0d 01 22 44 de  20 69 6d 61 67 65 25 20  |,77.."D. image% |
00000430  4c 25 3a c8 99 20 22 4f  53 5f 46 69 6c 65 22 2c  |L%:.. "OS_File",|
00000440  32 35 35 2c 69 6e 24 2c  69 6d 61 67 65 25 3a e7  |255,in$,image%:.|
00000450  20 73 69 64 65 25 3d 31  20 8c 20 69 6d 61 67 65  | side%=1 . image|
00000460  25 2b 3d 26 41 30 30 0d  01 2c 0b e7 20 76 62 25  |%+=&A00..,.. vb%|
00000470  20 8c 0d 01 36 17 20 f1  20 22 55 6e 70 61 63 6b  | ...6. . "Unpack|
00000480  69 6e 67 20 22 69 6e 24  3b 0d 01 40 0f 20 c8 8e  |ing "in$;..@. ..|
00000490  20 73 69 64 65 25 20 ca  0d 01 4a 24 20 c9 20 2d  | side% ...J$ . -|
000004a0  31 3a f1 20 22 20 28 73  69 6e 67 6c 65 20 73 69  |1:. " (single si|
000004b0  64 65 64 20 69 6d 61 67  65 29 22 3b 0d 01 54 21  |ded image)";..T!|
000004c0  20 c9 20 30 3a f1 20 22  20 28 73 69 64 65 20 3a  | . 0:. " (side :|
000004d0  30 20 6f 66 20 69 6d 61  67 65 29 22 3b 0d 01 5e  |0 of image)";..^|
000004e0  21 20 c9 20 31 3a f1 20  22 20 28 73 69 64 65 20  |! . 1:. " (side |
000004f0  3a 32 20 6f 66 20 69 6d  61 67 65 29 22 3b 0d 01  |:2 of image)";..|
00000500  68 24 20 c9 20 32 3a f1  20 22 20 28 62 6f 74 68  |h$ . 2:. " (both|
00000510  20 73 69 64 65 73 20 6f  66 20 69 6d 61 67 65 29  | sides of image)|
00000520  22 3b 0d 01 72 06 20 cb  0d 01 7c 12 20 f1 20 22  |";..r. ...|. . "|
00000530  20 74 6f 20 22 6f 75 74  64 24 0d 01 86 05 cd 0d  | to "outd$......|
00000540  01 90 26 e3 20 73 25 3d  28 31 20 80 20 73 69 64  |..&. s%=(1 . sid|
00000550  65 25 3d 31 29 20 b8 20  28 31 20 80 20 73 69 64  |e%=1) . (1 . sid|
00000560  65 25 3e 30 29 0d 01 9a  46 20 e7 20 61 63 6e 25  |e%>0)...F . acn%|
00000570  20 8c 20 6f 75 74 24 3d  6f 75 74 64 24 2b 22 2e  | . out$=outd$+".|
00000580  22 2b c3 20 28 73 25 2a  32 29 3a c8 99 20 22 4f  |"+. (s%*2):.. "O|
00000590  53 5f 46 69 6c 65 22 2c  38 2c 6f 75 74 24 3a 8b  |S_File",8,out$:.|
000005a0  20 6f 75 74 24 3d 6f 75  74 64 24 0d 01 a4 35 20  | out$=outd$...5 |
000005b0  66 70 74 72 25 3d 69 6d  61 67 65 25 2b 38 3a e7  |fptr%=image%+8:.|
000005c0  20 76 62 25 20 80 20 73  69 64 65 25 3d 32 20 8c  | vb% . side%=2 .|
000005d0  20 f1 20 22 53 69 64 65  20 3a 22 3b 73 25 2a 32  | . "Side :";s%*2|
000005e0  0d 01 ae 21 20 c8 95 20  66 70 74 72 25 3c 69 6d  |...! .. fptr%<im|
000005f0  61 67 65 25 2b 32 35 35  20 80 20 3f 66 70 74 72  |age%+255 . ?fptr|
00000600  25 0d 01 b8 38 20 20 6e  61 6d 65 24 3d 22 20 20  |%...8  name$="  |
00000610  20 20 20 20 20 22 3a 71  75 61 6c 24 3d bd 20 63  |     ":qual$=. c|
00000620  6f 6e 76 25 3f 28 66 70  74 72 25 3f 37 20 80 20  |onv%?(fptr%?7 . |
00000630  31 32 37 29 3a 6e 25 3d  36 0d 01 c2 21 20 20 c8  |127):n%=6...!  .|
00000640  95 20 66 70 74 72 25 3f  6e 25 3d 33 32 20 80 20  |. fptr%?n%=32 . |
00000650  6e 25 3a 6e 25 2d 3d 31  3a ce 0d 01 cc 3e 20 20  |n%:n%-=1:....>  |
00000660  c8 95 20 6e 25 3e 2d 31  3a c1 6e 61 6d 65 24 2c  |.. n%>-1:.name$,|
00000670  6e 25 2b 31 2c 31 29 3d  bd 20 63 6f 6e 76 25 3f  |n%+1,1)=. conv%?|
00000680  28 66 70 74 72 25 3f 6e  25 20 80 20 31 32 37 29  |(fptr%?n% . 127)|
00000690  3a 6e 25 2d 3d 31 3a ce  0d 01 d6 10 20 20 e7 20  |:n%-=1:.....  . |
000006a0  61 63 6e 25 3d a3 20 8c  0d 01 e0 33 20 20 20 e7  |acn%=. ....3   .|
000006b0  20 71 75 61 6c 24 3c 3e  22 24 22 20 8c 20 c8 99  | qual$<>"$" . ..|
000006c0  20 22 4f 53 5f 46 69 6c  65 22 2c 38 2c 6f 75 74  | "OS_File",8,out|
000006d0  24 2b 22 2e 22 2b 71 75  61 6c 24 0d 01 ea 11 20  |$+"."+qual$.... |
000006e0  20 20 71 75 61 6c 24 2b  3d 22 2e 22 0d 01 f4 07  |  qual$+="."....|
000006f0  20 20 cd 0d 01 fe 35 20  20 6c 6f 61 64 25 3d 66  |  ....5  load%=f|
00000700  70 74 72 25 21 32 35 36  20 80 20 26 46 46 46 46  |ptr%!256 . &FFFF|
00000710  3a 65 78 65 63 25 3d 66  70 74 72 25 21 32 35 38  |:exec%=fptr%!258|
00000720  20 80 20 26 46 46 46 46  0d 02 08 4a 20 20 6c 65  | . &FFFF...J  le|
00000730  6e 67 74 68 25 3d 66 70  74 72 25 21 32 36 30 20  |ngth%=fptr%!260 |
00000740  80 20 26 46 46 46 46 3a  73 65 63 74 6f 72 25 3d  |. &FFFF:sector%=|
00000750  28 66 70 74 72 25 3f 32  36 32 20 80 20 33 29 3c  |(fptr%?262 . 3)<|
00000760  3c 31 36 20 84 20 66 70  74 72 25 3f 32 36 33 3c  |<16 . fptr%?263<|
00000770  3c 38 0d 02 12 0d 20 20  e7 20 76 62 25 20 8c 0d  |<8....  . vb% ..|
00000780  02 1c 41 20 20 20 f1 20  22 46 6f 75 6e 64 3a 20  |..A   . "Found: |
00000790  22 c0 bd 20 28 66 70 74  72 25 3f 37 20 80 20 31  |".. (fptr%?7 . 1|
000007a0  32 37 29 2b 22 2e 22 2b  6e 61 6d 65 24 2b 22 20  |27)+"."+name$+" |
000007b0  20 20 20 20 20 20 20 20  20 20 22 2c 31 32 29 3b  |          ",12);|
000007c0  0d 02 26 18 20 20 20 f1  20 22 2c 20 73 61 76 69  |..&.   . ", savi|
000007d0  6e 67 20 61 73 20 22 3b  0d 02 30 37 20 20 20 f1  |ng as ";..07   .|
000007e0  20 c0 71 75 61 6c 24 2b  c0 22 2e 22 2c 31 20 80  | .qual$+.".",1 .|
000007f0  20 61 63 6e 25 29 2b 6e  61 6d 65 24 2b 22 20 20  | acn%)+name$+"  |
00000800  20 20 20 20 20 20 20 20  20 22 2c 31 32 29 3b 0d  |         ",12);.|
00000810  02 3a 2f 20 20 20 f1 20  c2 22 30 30 30 22 2b c3  |.:/   . ."000"+.|
00000820  7e 6c 6f 61 64 25 2c 34  29 22 20 22 c2 22 30 30  |~load%,4)" "."00|
00000830  30 22 2b c3 7e 65 78 65  63 25 2c 34 29 3b 0d 02  |0"+.~exec%,4);..|
00000840  44 3b 20 20 20 f1 20 22  20 22 c2 22 30 30 30 22  |D;   . " "."000"|
00000850  2b c3 7e 6c 65 6e 67 74  68 25 2c 34 29 22 20 22  |+.~length%,4)" "|
00000860  c2 22 30 30 22 2b c3 7e  28 73 65 63 74 6f 72 25  |."00"+.~(sector%|
00000870  2f 32 35 36 29 2c 33 29  3b 0d 02 4e 07 20 20 cd  |/256),3);..N.  .|
00000880  0d 02 58 1d 20 20 e7 20  71 75 61 6c 24 3d 22 24  |..X.  . qual$="$|
00000890  2e 22 20 8c 20 71 75 61  6c 24 3d 22 22 0d 02 62  |." . qual$=""..b|
000008a0  20 20 20 6e 61 6d 65 24  3d 6f 75 74 24 2b 22 2e  |   name$=out$+".|
000008b0  22 2b 71 75 61 6c 24 2b  6e 61 6d 65 24 0d 02 6c  |"+qual$+name$..l|
000008c0  0e 20 20 e7 20 64 73 64  25 20 8c 0d 02 76 38 20  |.  . dsd% ...v8 |
000008d0  20 20 4c 25 3d 69 6d 61  67 65 25 2b 28 73 65 63  |  L%=image%+(sec|
000008e0  74 6f 72 25 20 81 20 26  41 30 30 29 2a 26 31 34  |tor% . &A00)*&14|
000008f0  30 30 2b 28 73 65 63 74  6f 72 25 20 83 20 26 41  |00+(sector% . &A|
00000900  30 30 29 0d 02 80 39 20  20 20 46 25 3d 26 41 30  |00)...9   F%=&A0|
00000910  30 2d 28 73 65 63 74 6f  72 25 20 83 20 26 41 30  |0-(sector% . &A0|
00000920  30 29 3a e7 20 46 25 3e  6c 65 6e 67 74 68 25 20  |0):. F%>length% |
00000930  8c 20 46 25 3d 6c 65 6e  67 74 68 25 0d 02 8a 11  |. F%=length%....|
00000940  20 20 20 4f 25 3d ae 20  6e 61 6d 65 24 0d 02 94  |   O%=. name$...|
00000950  11 20 20 20 c8 95 20 6c  65 6e 67 74 68 25 0d 02  |.   .. length%..|
00000960  9e 24 20 20 20 20 c8 99  20 22 4f 53 5f 47 42 50  |.$    .. "OS_GBP|
00000970  42 22 2c 32 2c 4f 25 2c  4c 25 2c 46 25 2c 8f 23  |B",2,O%,L%,F%,.#|
00000980  4f 25 0d 02 a8 41 20 20  20 20 4c 25 2b 3d 46 25  |O%...A    L%+=F%|
00000990  2b 26 41 30 30 3a 6c 65  6e 67 74 68 25 2d 3d 46  |+&A00:length%-=F|
000009a0  25 3a 46 25 3d 26 41 30  30 3a e7 20 46 25 3e 6c  |%:F%=&A00:. F%>l|
000009b0  65 6e 67 74 68 25 20 8c  20 46 25 3d 6c 65 6e 67  |ength% . F%=leng|
000009c0  74 68 25 0d 02 b2 08 20  20 20 ce 0d 02 bc 11 20  |th%....   ..... |
000009d0  20 20 d9 23 4f 25 3a 4f  25 3d 2d 31 0d 02 c6 32  |  .#O%:O%=-1...2|
000009e0  20 20 20 e7 20 65 78 65  63 25 3d 26 38 30 31 46  |   . exec%=&801F|
000009f0  20 84 20 65 78 65 63 25  3d 26 38 30 32 33 20 84  | . exec%=&8023 .|
00000a00  20 65 78 65 63 25 3d 26  38 30 32 42 20 8c 0d 02  | exec%=&802B ...|
00000a10  d0 1d 20 20 20 20 e7 20  76 62 25 20 8c 20 f1 20  |..    . vb% . . |
00000a20  22 20 28 42 41 53 49 43  29 22 3b 0d 02 da 22 20  |" (BASIC)";..." |
00000a30  20 20 20 c8 99 20 22 4f  53 5f 46 69 6c 65 22 2c  |   .. "OS_File",|
00000a40  31 38 2c 6e 61 6d 65 24  2c 26 46 46 42 0d 02 e4  |18,name$,&FFB...|
00000a50  2c 20 20 20 cc 20 c8 99  20 22 4f 53 5f 46 69 6c  |,   . .. "OS_Fil|
00000a60  65 22 2c 31 2c 6e 61 6d  65 24 2c 6c 6f 61 64 25  |e",1,name$,load%|
00000a70  2c 65 78 65 63 25 2c 2c  33 0d 02 ee 08 20 20 20  |,exec%,,3....   |
00000a80  cd 0d 02 f8 19 20 20 cc  20 4c 25 3d 69 6d 61 67  |.....  . L%=imag|
00000a90  65 25 2b 73 65 63 74 6f  72 25 0d 03 02 32 20 20  |e%+sector%...2  |
00000aa0  20 e7 20 65 78 65 63 25  3d 26 38 30 31 46 20 84  | . exec%=&801F .|
00000ab0  20 65 78 65 63 25 3d 26  38 30 32 33 20 84 20 65  | exec%=&8023 . e|
00000ac0  78 65 63 25 3d 26 38 30  32 42 20 8c 0d 03 0c 1d  |xec%=&802B .....|
00000ad0  20 20 20 20 e7 20 76 62  25 20 8c 20 f1 20 22 20  |    . vb% . . " |
00000ae0  28 42 41 53 49 43 29 22  3b 0d 03 16 31 20 20 20  |(BASIC)";...1   |
00000af0  20 c8 99 20 22 4f 53 5f  46 69 6c 65 22 2c 31 30  | .. "OS_File",10|
00000b00  2c 6e 61 6d 65 24 2c 26  46 46 42 2c 2c 4c 25 2c  |,name$,&FFB,,L%,|
00000b10  4c 25 2b 6c 65 6e 67 74  68 25 0d 03 20 37 20 20  |L%+length%.. 7  |
00000b20  20 cc 20 c8 99 20 22 4f  53 5f 46 69 6c 65 22 2c  | . .. "OS_File",|
00000b30  30 2c 6e 61 6d 65 24 2c  6c 6f 61 64 25 2c 65 78  |0,name$,load%,ex|
00000b40  65 63 25 2c 4c 25 2c 4c  25 2b 6c 65 6e 67 74 68  |ec%,L%,L%+length|
00000b50  25 0d 03 2a 08 20 20 20  cd 0d 03 34 07 20 20 cd  |%..*.   ...4.  .|
00000b60  0d 03 3e 0f 20 20 e7 20  76 62 25 20 8c 20 f1 0d  |..>.  . vb% . ..|
00000b70  03 48 0e 20 20 66 70 74  72 25 2b 3d 38 0d 03 52  |.H.  fptr%+=8..R|
00000b80  06 20 ce 0d 03 5c 11 20  69 6d 61 67 65 25 2b 3d  |. ...\. image%+=|
00000b90  26 41 30 30 0d 03 66 05  ed 0d 03 70 19 2a 53 65  |&A00..f....p.*Se|
00000ba0  74 20 53 79 73 24 52 65  74 75 72 6e 43 6f 64 65  |t Sys$ReturnCode|
00000bb0  20 30 0d 03 7a 05 e0 0d  03 84 04 0d 03 8e 0c dd  | 0..z...........|
00000bc0  20 a4 30 28 41 25 29 0d  03 98 2b e7 20 41 25 3e  | .0(A%)...+. A%>|
00000bd0  32 35 35 20 8b 20 e7 20  63 6d 64 25 21 41 25 20  |255 . . cmd%!A% |
00000be0  8c 20 41 25 3d 63 6d 64  25 21 41 25 3a 8b 20 3d  |. A%=cmd%!A%:. =|
00000bf0  22 22 0d 03 a2 1a c8 99  20 22 4f 53 5f 57 72 69  |""...... "OS_Wri|
00000c00  74 65 4e 22 2c 41 25 20  b8 20 61 24 0d 03 ac 07  |teN",A% . a$....|
00000c10  3d 61 24 0d ff                                    |=a$..|
00000c15
!BEEBARC/DFS_SPlit.m0
!BEEBARC/DFS_SPlit.m1
!BEEBARC/DFS_SPlit.m2
!BEEBARC/DFS_SPlit.m4
!BEEBARC/DFS_SPlit.m5