Home » Personal collection » Acorn ADFS disks » Electron » Utilities_1.ADF » LIBRARY/Basic/Utils

LIBRARY/Basic/Utils

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 » Electron » Utilities_1.ADF
Filename: LIBRARY/Basic/Utils
Read OK:
File size: 0A63 bytes
Load address: FFFF0E00
Exec address: FFFF8023
File contents
   10VDU6:*FX220,27
   20ONERRORGOTO510
   30DIME%15:DIMD%8,P&0C,A&11:DIMN%12:DIMF$(1,47),F(1),I(1),A(47)
   40PROCI:M=L:REPEAT:IFM=HGOTO60
   50PROCR(M,"$.Library"):GOTO70
   60PROCR(M,"$.Help")
   70PROCo(F(M)):MODEK:IFM=HGOTO100
   80PROCM(M,"** Utilities Menu **"):PROCP("Press key to select, or SPACE for help"):F=FNG(M):IFF=-1THENM=H:GOTO120
   90PROCu(F):GOTO120
  100PROCM(M,"*** Help Menu ***"):PROCP("Press key to select, or SPACE to return"):F=FNG(M):IFF=-1THENM=L:GOTO120
  110MODE6:PROCH(F)
  120UNTILFALSE:END
  130DEFPROCI:O=&FFD1:U=&FFDD:V=&FFF1:S=32:B=13:D=14:L=0:H=1:I(L)=FALSE:I(H)=FALSE:I$="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-^\@[_;]?$#":E$=CHR$17+CHR$135+CHR$17+CHR$0:F$=CHR$17+CHR$128+CHR$17+CHR$7:FORI%=0TO15:READE%?I%:NEXT
  140DATA &00,&03,&0C,&0F,&30,&33,&3C,&3F
  150DATA &C0,&C3,&CC,&CF,&F0,&F3,&FC,&FF
  160ENDPROC
  170DEFPROCo(N):K=4:W=40:X=32:I=0:J=4:IFN>36THEN200ELSEIFN>24THEN190
  180Q=2:R=12:T=1:GOTO210
  190Q=3:R=12:T=1:GOTO210
  200Q=2:R=24:T=0
  210ENDPROC
  220DEFPROCB(S$,x,y):VDU31,x,y:A%=&0A:X%=D%:Y%=D%DIV&100:FORC%=1TOLEN(S$):?D%=ASC(MID$(S$,C%,1)):CALLV:FORI%=0TO1:FORJ%=0TO1:VDU23,224+2*J%+I%:FORR%=1TO4:B%=D%?(J%*4+R%):IFI%=0B%=B%DIV&10ELSEB%=B%AND&0F
  230VDUE%?B%,E%?B%:NEXT,,:VDU224,225,10,8,8,226,227,11:NEXTC%:ENDPROC
  240DEFPROCu(F):PROCr:IFA(F)PROCdELSEPROCE
  250ENDPROC
  260DEFPROCd:PROCG:OSCLI(F$(M,F)+" "+C$):END:ENDPROC
  270DEFPROCE:PRINTTAB(0,X-1);:OSCLI(F$(M,F)):END:ENDPROC
  280DEFPROCG:PRINTTAB(0,X-1)"*";F$(M,F);:INPUT" "C$:ENDPROC
  290DEFPROCH(F):PROCs:H%=OPENIN(F$(M,F)):L%=1:REPEATC%=BGET#H%:IFC%<>13VDUC%:UNTILEOF#H%:GOTO330
  300PRINT:L%=L%+1:IFL%<=23GOTO320
  310PRINTTAB(0,24)"Press SHIFT to continue";:REPEATUNTILINKEY(-1):PRINTTAB(0,24);:L%=1
  320UNTILEOF#H%
  330PROCi:CLOSE#H%:ENDPROC
  340DEFPROCi:PROCs:PRINT'"Hit any key to return to menu ...";:G=GET:ENDPROC
  350DEFFNG(M):REPEAT:OSCLI("fx21 0"):C=GET:IFC=STHENF=-1:GOTO380
  360IF(C>=ASC"a")AND(C<=ASC"z")THENC=CAND&DF
  370F=INSTR(LEFT$(I$,F(M)),CHR$C)
  380UNTILF<>0:=F
  390DEFPROCR(M,D$):OSCLI("Dir "+D$):F(M)=0:P!9=0:REPEAT:P!1=N%:P!5=1:A%=8:X%=P:Y%=PDIV&100:CALLO:IFP!5=1THEN430
  400L%=?N%:N%?(L%+1)=B:A!0=N%+1:A%=5:X%=A:Y%=ADIV&100:IF(USR(U)AND&FF)<>1GOTO430
  410F(M)=F(M)+1:REPEAT:G%=(MID$($(N%+1),L%,1)=" "):IFG%THENL%=L%-1
  420UNTILNOTG%:F$(M,F(M))=LEFT$($(N%+1),L%):IFM=LTHENA(F(M))=(A!6<>-1)
  430UNTILP!5=1:I(M)=TRUE:ENDPROC
  440DEFPROCM(M,B$):E=(W-2*I)DIVQ:PROCs:PROCB(B$,(W-LEN(B$)*2)/2,0):IFF(M)=0THEN470
  450FORF=1TOF(M):x=I+((F-1)DIVR)*E:y=J+((F-1)MODR)*(1+T):PRINTTAB(x,y)E$;MID$(I$,F,1);F$;:IF(M=L)ANDA(F)THENPRINTTAB(x+2,y)"*";
  460PRINTTAB(x+3,y)F$(M,F);:NEXTF
  470ENDPROC
  480DEFPROCP(P$):PRINTTAB((W-LEN(P$))/2,X-3)P$;:ENDPROC
  490DEFPROCs:VDU23,1,0;0;0;0;:ENDPROC
  500DEFPROCr:VDU23,1,1;0;0;0;:ENDPROC
  510CLOSE#0:A$="":IFERR<>17REPORT:PRINT" at line ";ERL:TIME=0:REPEAT:UNTILTIME>50:IFQ%=72GOTO550
  520IFQ%<>72MODE6:END
  530SOUND&13,0,0,1:SOUND&12,0,0,1:SOUND&11,0,0,1:SOUND&10,0,0,1:SOUND&13,0,0,1:SOUND&12,0,0,1:SOUND&11,0,0,1:SOUND&10,0,0,1:REPEAT:MODE4:PROCs:CLS:PROCC("Which do you want to do ?",10):PRINTTAB(10,VPOS+3)"";:PROCg("R"):PRINT"epeat this program":PRINTTAB(10,VPOS+1)"Return to main ";:PROCg("M"):PRINT"enu":PRINTTAB(10,VPOS+1)"";:PROCg("E")
  540PRINT"xit from disc":PRINTTAB(0,VPOS+3)"Choose from ";:PROCg("R"):PRINT"epeat, ";:PROCg("M"):PRINT"enu or ";:PROCg("E"):PRINT"xit ";:A$=GET$:UNTIL(A$="R")OR(A$="M")OR(A$="E"):CLS:IFA$="R"THENGOTO40
  550IFA$="M"THENP%=1ELSEP%=17
  560*FX4
  570VDU21:*FX220,0
  580*FX15,1
  590*FX201,1
  600*DIR $.Welcome
  610CHAIN"BOOT":END
  620DEFPROCg(A$):COLOUR0:COLOUR135:PRINTA$;:COLOUR7:COLOUR128:ENDPROC
  630DEFPROCC(A$,y%)PRINTTAB((38-LENA$)/2,y%)A$;:ENDPROC

�6:*FX220,27
��d~A
8�E%15:�D%8,P&0C,A&11:�N%12:�F$(1,47),F(1),I(1),A(47)
(�I:M=L:�:�M=H�T|@
2�R(M,"$.Library"):�DF@
<�R(M,"$.Help")
F�o(F(M)):�K:�M=H�Dd@
Pe�M(M,"** Utilities Menu **"):�P("Press key to select, or SPACE for help"):F=�G(M):�F=-1�M=H:�Dx@
Z�u(F):�Dx@
dc�M(M,"*** Help Menu ***"):�P("Press key to select, or SPACE to return"):F=�G(M):�F=-1�M=L:�Dx@
n�6:�H(F)
x��:�
����I:O=&FFD1:U=&FFDD:V=&FFF1:S=32:B=13:D=14:L=0:H=1:I(L)=�:I(H)=�:I$="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-^\@[_;]?$#":E$=�17+�135+�17+�0:F$=�17+�128+�17+�7:�I%=0�15:�E%?I%:�
�%� &00,&03,&0C,&0F,&30,&33,&3C,&3F
�%� &C0,&C3,&CC,&CF,&F0,&F3,&FC,&FF
��
�6��o(N):K=4:W=40:X=32:I=0:J=4:�N>36��dH@��N>24��t~@
�Q=2:R=12:T=1:�dR@
�Q=3:R=12:T=1:�dR@
�Q=2:R=24:T=0
��
ܠ��B(S$,x,y):�31,x,y:A%=&0A:X%=D%:Y%=D%�&100:�C%=1��(S$):?D%=�(�S$,C%,1)):�V:�I%=0�1:�J%=0�1:�23,224+2*J%+I%:�R%=1�4:B%=D%?(J%*4+R%):�I%=0B%=B%�&10�B%=B%�&0F
�5�E%?B%,E%?B%:�,,:�224,225,10,8,8,226,227,11:�C%:�
���u(F):�r:�A(F)�d��E
��
 ��d:�G:�(F$(M,F)+" "+C$):�:�
 ��E:�0,X-1);:�(F$(M,F)):�:�
%��G:�0,X-1)"*";F$(M,F);:�" "C$:�
"@��H(F):�s:H%=�(F$(M,F)):L%=1:�C%=�#H%:�C%<>13�C%:��#H%:�DJA
,�:L%=L%+1:�L%<=23�D@A
6;�0,24)"Press SHIFT to continue";:���(-1):�0,24);:L%=1
@	��#H%
J
�i:�#H%:�
T7��i:�s:�'"Hit any key to return to menu ...";:G=�:�
^,ݤG(M):�:�("fx21 0"):C=�:�C=S�F=-1:�D|A
h �(C>=�"a")�(C<=�"z")�C=C�&DF
rF=��I$,F(M)),�C)
|�F<>0:=F
�Y��R(M,D$):�("Dir "+D$):F(M)=0:P!9=0:�:P!1=N%:P!5=1:A%=8:X%=P:Y%=P�&100:�O:�P!5=1��tnA
�GL%=?N%:N%?(L%+1)=B:A!0=N%+1:A%=5:X%=A:Y%=A�&100:�(�(U)�&FF)<>1�tnA
�5F(M)=F(M)+1:�:G%=(�$(N%+1),L%,1)=" "):�G%�L%=L%-1
�7��G%:F$(M,F(M))=�$(N%+1),L%):�M=L�A(F(M))=(A!6<>-1)
��P!5=1:I(M)=�:�
�@��M(M,B$):E=(W-2*I)�Q:�s:�B(B$,(W-�(B$)*2)/2,0):�F(M)=0��dVA
�`�F=1�F(M):x=I+((F-1)�R)*E:y=J+((F-1)�R)*(1+T):�x,y)E$;�I$,F,1);F$;:�(M=L)�A(F)��x+2,y)"*";
��x+3,y)F$(M,F);:�F
��
�#��P(P$):�(W-�(P$))/2,X-3)P$;:�
���s:�23,1,0;0;0;0;:�
���r:�23,1,1;0;0;0;:�
�<�#0:A$="":�<>17�:�" at line ";�:�=0:�:��>50:�Q%=72�TfB
�Q%<>72�6:�
��&13,0,0,1:�&12,0,0,1:�&11,0,0,1:�&10,0,0,1:�&13,0,0,1:�&12,0,0,1:�&11,0,0,1:�&10,0,0,1:�:�4:�s:�:�C("Which do you want to do ?",10):�10,�+3)"";:�g("R"):�"epeat this program":�10,�+1)"Return to main ";:�g("M"):�"enu":�10,�+1)"";:�g("E")
��"xit from disc":�0,�+3)"Choose from ";:�g("R"):�"epeat, ";:�g("M"):�"enu or ";:�g("E"):�"xit ";:A$=�:�(A$="R")�(A$="M")�(A$="E"):�:�A$="R"��Th@
&�A$="M"�P%=1�P%=17
0*FX4
:�21:*FX220,0
D*FX15,1
N*FX201,1
X*DIR $.Welcome
b
�"BOOT":�
l"��g(A$):�0:�135:�A$;:�7:�128:�
v#��C(A$,y%)�(38-�A$)/2,y%)A$;:�
�
00000000  0d 00 0a 10 ef 36 3a 2a  46 58 32 32 30 2c 32 37  |.....6:*FX220,27|
00000010  0d 00 14 0b ee 85 e5 8d  64 7e 41 0d 00 1e 38 de  |........d~A...8.|
00000020  45 25 31 35 3a de 44 25  38 2c 50 26 30 43 2c 41  |E%15:.D%8,P&0C,A|
00000030  26 31 31 3a de 4e 25 31  32 3a de 46 24 28 31 2c  |&11:.N%12:.F$(1,|
00000040  34 37 29 2c 46 28 31 29  2c 49 28 31 29 2c 41 28  |47),F(1),I(1),A(|
00000050  34 37 29 0d 00 28 16 f2  49 3a 4d 3d 4c 3a f5 3a  |47)..(..I:M=L:.:|
00000060  e7 4d 3d 48 e5 8d 54 7c  40 0d 00 32 1b f2 52 28  |.M=H..T|@..2..R(|
00000070  4d 2c 22 24 2e 4c 69 62  72 61 72 79 22 29 3a e5  |M,"$.Library"):.|
00000080  8d 44 46 40 0d 00 3c 12  f2 52 28 4d 2c 22 24 2e  |.DF@..<..R(M,"$.|
00000090  48 65 6c 70 22 29 0d 00  46 19 f2 6f 28 46 28 4d  |Help")..F..o(F(M|
000000a0  29 29 3a eb 4b 3a e7 4d  3d 48 e5 8d 44 64 40 0d  |)):.K:.M=H..Dd@.|
000000b0  00 50 65 f2 4d 28 4d 2c  22 2a 2a 20 55 74 69 6c  |.Pe.M(M,"** Util|
000000c0  69 74 69 65 73 20 4d 65  6e 75 20 2a 2a 22 29 3a  |ities Menu **"):|
000000d0  f2 50 28 22 50 72 65 73  73 20 6b 65 79 20 74 6f  |.P("Press key to|
000000e0  20 73 65 6c 65 63 74 2c  20 6f 72 20 53 50 41 43  | select, or SPAC|
000000f0  45 20 66 6f 72 20 68 65  6c 70 22 29 3a 46 3d a4  |E for help"):F=.|
00000100  47 28 4d 29 3a e7 46 3d  2d 31 8c 4d 3d 48 3a e5  |G(M):.F=-1.M=H:.|
00000110  8d 44 78 40 0d 00 5a 0f  f2 75 28 46 29 3a e5 8d  |.Dx@..Z..u(F):..|
00000120  44 78 40 0d 00 64 63 f2  4d 28 4d 2c 22 2a 2a 2a  |Dx@..dc.M(M,"***|
00000130  20 48 65 6c 70 20 4d 65  6e 75 20 2a 2a 2a 22 29  | Help Menu ***")|
00000140  3a f2 50 28 22 50 72 65  73 73 20 6b 65 79 20 74  |:.P("Press key t|
00000150  6f 20 73 65 6c 65 63 74  2c 20 6f 72 20 53 50 41  |o select, or SPA|
00000160  43 45 20 74 6f 20 72 65  74 75 72 6e 22 29 3a 46  |CE to return"):F|
00000170  3d a4 47 28 4d 29 3a e7  46 3d 2d 31 8c 4d 3d 4c  |=.G(M):.F=-1.M=L|
00000180  3a e5 8d 44 78 40 0d 00  6e 0c eb 36 3a f2 48 28  |:..Dx@..n..6:.H(|
00000190  46 29 0d 00 78 08 fd a3  3a e0 0d 00 82 b1 dd f2  |F)..x...:.......|
000001a0  49 3a 4f 3d 26 46 46 44  31 3a 55 3d 26 46 46 44  |I:O=&FFD1:U=&FFD|
000001b0  44 3a 56 3d 26 46 46 46  31 3a 53 3d 33 32 3a 42  |D:V=&FFF1:S=32:B|
000001c0  3d 31 33 3a 44 3d 31 34  3a 4c 3d 30 3a 48 3d 31  |=13:D=14:L=0:H=1|
000001d0  3a 49 28 4c 29 3d a3 3a  49 28 48 29 3d a3 3a 49  |:I(L)=.:I(H)=.:I|
000001e0  24 3d 22 30 31 32 33 34  35 36 37 38 39 41 42 43  |$="0123456789ABC|
000001f0  44 45 46 47 48 49 4a 4b  4c 4d 4e 4f 50 51 52 53  |DEFGHIJKLMNOPQRS|
00000200  54 55 56 57 58 59 5a 2d  5e 5c 40 5b 5f 3b 5d 3f  |TUVWXYZ-^\@[_;]?|
00000210  24 23 22 3a 45 24 3d bd  31 37 2b bd 31 33 35 2b  |$#":E$=.17+.135+|
00000220  bd 31 37 2b bd 30 3a 46  24 3d bd 31 37 2b bd 31  |.17+.0:F$=.17+.1|
00000230  32 38 2b bd 31 37 2b bd  37 3a e3 49 25 3d 30 b8  |28+.17+.7:.I%=0.|
00000240  31 35 3a f3 45 25 3f 49  25 3a ed 0d 00 8c 25 dc  |15:.E%?I%:....%.|
00000250  20 26 30 30 2c 26 30 33  2c 26 30 43 2c 26 30 46  | &00,&03,&0C,&0F|
00000260  2c 26 33 30 2c 26 33 33  2c 26 33 43 2c 26 33 46  |,&30,&33,&3C,&3F|
00000270  0d 00 96 25 dc 20 26 43  30 2c 26 43 33 2c 26 43  |...%. &C0,&C3,&C|
00000280  43 2c 26 43 46 2c 26 46  30 2c 26 46 33 2c 26 46  |C,&CF,&F0,&F3,&F|
00000290  43 2c 26 46 46 0d 00 a0  05 e1 0d 00 aa 36 dd f2  |C,&FF........6..|
000002a0  6f 28 4e 29 3a 4b 3d 34  3a 57 3d 34 30 3a 58 3d  |o(N):K=4:W=40:X=|
000002b0  33 32 3a 49 3d 30 3a 4a  3d 34 3a e7 4e 3e 33 36  |32:I=0:J=4:.N>36|
000002c0  8c 8d 64 48 40 8b e7 4e  3e 32 34 8c 8d 74 7e 40  |..dH@..N>24..t~@|
000002d0  0d 00 b4 16 51 3d 32 3a  52 3d 31 32 3a 54 3d 31  |....Q=2:R=12:T=1|
000002e0  3a e5 8d 64 52 40 0d 00  be 16 51 3d 33 3a 52 3d  |:..dR@....Q=3:R=|
000002f0  31 32 3a 54 3d 31 3a e5  8d 64 52 40 0d 00 c8 10  |12:T=1:..dR@....|
00000300  51 3d 32 3a 52 3d 32 34  3a 54 3d 30 0d 00 d2 05  |Q=2:R=24:T=0....|
00000310  e1 0d 00 dc a0 dd f2 42  28 53 24 2c 78 2c 79 29  |.......B(S$,x,y)|
00000320  3a ef 33 31 2c 78 2c 79  3a 41 25 3d 26 30 41 3a  |:.31,x,y:A%=&0A:|
00000330  58 25 3d 44 25 3a 59 25  3d 44 25 81 26 31 30 30  |X%=D%:Y%=D%.&100|
00000340  3a e3 43 25 3d 31 b8 a9  28 53 24 29 3a 3f 44 25  |:.C%=1..(S$):?D%|
00000350  3d 97 28 c1 53 24 2c 43  25 2c 31 29 29 3a d6 56  |=.(.S$,C%,1)):.V|
00000360  3a e3 49 25 3d 30 b8 31  3a e3 4a 25 3d 30 b8 31  |:.I%=0.1:.J%=0.1|
00000370  3a ef 32 33 2c 32 32 34  2b 32 2a 4a 25 2b 49 25  |:.23,224+2*J%+I%|
00000380  3a e3 52 25 3d 31 b8 34  3a 42 25 3d 44 25 3f 28  |:.R%=1.4:B%=D%?(|
00000390  4a 25 2a 34 2b 52 25 29  3a e7 49 25 3d 30 42 25  |J%*4+R%):.I%=0B%|
000003a0  3d 42 25 81 26 31 30 8b  42 25 3d 42 25 80 26 30  |=B%.&10.B%=B%.&0|
000003b0  46 0d 00 e6 35 ef 45 25  3f 42 25 2c 45 25 3f 42  |F...5.E%?B%,E%?B|
000003c0  25 3a ed 2c 2c 3a ef 32  32 34 2c 32 32 35 2c 31  |%:.,,:.224,225,1|
000003d0  30 2c 38 2c 38 2c 32 32  36 2c 32 32 37 2c 31 31  |0,8,8,226,227,11|
000003e0  3a ed 43 25 3a e1 0d 00  f0 18 dd f2 75 28 46 29  |:.C%:.......u(F)|
000003f0  3a f2 72 3a e7 41 28 46  29 f2 64 8b f2 45 0d 00  |:.r:.A(F).d..E..|
00000400  fa 05 e1 0d 01 04 20 dd  f2 64 3a f2 47 3a ff 28  |...... ..d:.G:.(|
00000410  46 24 28 4d 2c 46 29 2b  22 20 22 2b 43 24 29 3a  |F$(M,F)+" "+C$):|
00000420  e0 3a e1 0d 01 0e 20 dd  f2 45 3a f1 8a 30 2c 58  |.:.... ..E:..0,X|
00000430  2d 31 29 3b 3a ff 28 46  24 28 4d 2c 46 29 29 3a  |-1);:.(F$(M,F)):|
00000440  e0 3a e1 0d 01 18 25 dd  f2 47 3a f1 8a 30 2c 58  |.:....%..G:..0,X|
00000450  2d 31 29 22 2a 22 3b 46  24 28 4d 2c 46 29 3b 3a  |-1)"*";F$(M,F);:|
00000460  e8 22 20 22 43 24 3a e1  0d 01 22 40 dd f2 48 28  |." "C$:..."@..H(|
00000470  46 29 3a f2 73 3a 48 25  3d 8e 28 46 24 28 4d 2c  |F):.s:H%=.(F$(M,|
00000480  46 29 29 3a 4c 25 3d 31  3a f5 43 25 3d 9a 23 48  |F)):L%=1:.C%=.#H|
00000490  25 3a e7 43 25 3c 3e 31  33 ef 43 25 3a fd c5 23  |%:.C%<>13.C%:..#|
000004a0  48 25 3a e5 8d 44 4a 41  0d 01 2c 1a f1 3a 4c 25  |H%:..DJA..,..:L%|
000004b0  3d 4c 25 2b 31 3a e7 4c  25 3c 3d 32 33 e5 8d 44  |=L%+1:.L%<=23..D|
000004c0  40 41 0d 01 36 3b f1 8a  30 2c 32 34 29 22 50 72  |@A..6;..0,24)"Pr|
000004d0  65 73 73 20 53 48 49 46  54 20 74 6f 20 63 6f 6e  |ess SHIFT to con|
000004e0  74 69 6e 75 65 22 3b 3a  f5 fd a6 28 2d 31 29 3a  |tinue";:...(-1):|
000004f0  f1 8a 30 2c 32 34 29 3b  3a 4c 25 3d 31 0d 01 40  |..0,24);:L%=1..@|
00000500  09 fd c5 23 48 25 0d 01  4a 0d f2 69 3a d9 23 48  |...#H%..J..i:.#H|
00000510  25 3a e1 0d 01 54 37 dd  f2 69 3a f2 73 3a f1 27  |%:...T7..i:.s:.'|
00000520  22 48 69 74 20 61 6e 79  20 6b 65 79 20 74 6f 20  |"Hit any key to |
00000530  72 65 74 75 72 6e 20 74  6f 20 6d 65 6e 75 20 2e  |return to menu .|
00000540  2e 2e 22 3b 3a 47 3d a5  3a e1 0d 01 5e 2c dd a4  |..";:G=.:...^,..|
00000550  47 28 4d 29 3a f5 3a ff  28 22 66 78 32 31 20 30  |G(M):.:.("fx21 0|
00000560  22 29 3a 43 3d a5 3a e7  43 3d 53 8c 46 3d 2d 31  |"):C=.:.C=S.F=-1|
00000570  3a e5 8d 44 7c 41 0d 01  68 20 e7 28 43 3e 3d 97  |:..D|A..h .(C>=.|
00000580  22 61 22 29 80 28 43 3c  3d 97 22 7a 22 29 8c 43  |"a").(C<=."z").C|
00000590  3d 43 80 26 44 46 0d 01  72 14 46 3d a7 c0 49 24  |=C.&DF..r.F=..I$|
000005a0  2c 46 28 4d 29 29 2c bd  43 29 0d 01 7c 0c fd 46  |,F(M)),.C)..|..F|
000005b0  3c 3e 30 3a 3d 46 0d 01  86 59 dd f2 52 28 4d 2c  |<>0:=F...Y..R(M,|
000005c0  44 24 29 3a ff 28 22 44  69 72 20 22 2b 44 24 29  |D$):.("Dir "+D$)|
000005d0  3a 46 28 4d 29 3d 30 3a  50 21 39 3d 30 3a f5 3a  |:F(M)=0:P!9=0:.:|
000005e0  50 21 31 3d 4e 25 3a 50  21 35 3d 31 3a 41 25 3d  |P!1=N%:P!5=1:A%=|
000005f0  38 3a 58 25 3d 50 3a 59  25 3d 50 81 26 31 30 30  |8:X%=P:Y%=P.&100|
00000600  3a d6 4f 3a e7 50 21 35  3d 31 8c 8d 74 6e 41 0d  |:.O:.P!5=1..tnA.|
00000610  01 90 47 4c 25 3d 3f 4e  25 3a 4e 25 3f 28 4c 25  |..GL%=?N%:N%?(L%|
00000620  2b 31 29 3d 42 3a 41 21  30 3d 4e 25 2b 31 3a 41  |+1)=B:A!0=N%+1:A|
00000630  25 3d 35 3a 58 25 3d 41  3a 59 25 3d 41 81 26 31  |%=5:X%=A:Y%=A.&1|
00000640  30 30 3a e7 28 ba 28 55  29 80 26 46 46 29 3c 3e  |00:.(.(U).&FF)<>|
00000650  31 e5 8d 74 6e 41 0d 01  9a 35 46 28 4d 29 3d 46  |1..tnA...5F(M)=F|
00000660  28 4d 29 2b 31 3a f5 3a  47 25 3d 28 c1 24 28 4e  |(M)+1:.:G%=(.$(N|
00000670  25 2b 31 29 2c 4c 25 2c  31 29 3d 22 20 22 29 3a  |%+1),L%,1)=" "):|
00000680  e7 47 25 8c 4c 25 3d 4c  25 2d 31 0d 01 a4 37 fd  |.G%.L%=L%-1...7.|
00000690  ac 47 25 3a 46 24 28 4d  2c 46 28 4d 29 29 3d c0  |.G%:F$(M,F(M))=.|
000006a0  24 28 4e 25 2b 31 29 2c  4c 25 29 3a e7 4d 3d 4c  |$(N%+1),L%):.M=L|
000006b0  8c 41 28 46 28 4d 29 29  3d 28 41 21 36 3c 3e 2d  |.A(F(M))=(A!6<>-|
000006c0  31 29 0d 01 ae 13 fd 50  21 35 3d 31 3a 49 28 4d  |1).....P!5=1:I(M|
000006d0  29 3d b9 3a e1 0d 01 b8  40 dd f2 4d 28 4d 2c 42  |)=.:....@..M(M,B|
000006e0  24 29 3a 45 3d 28 57 2d  32 2a 49 29 81 51 3a f2  |$):E=(W-2*I).Q:.|
000006f0  73 3a f2 42 28 42 24 2c  28 57 2d a9 28 42 24 29  |s:.B(B$,(W-.(B$)|
00000700  2a 32 29 2f 32 2c 30 29  3a e7 46 28 4d 29 3d 30  |*2)/2,0):.F(M)=0|
00000710  8c 8d 64 56 41 0d 01 c2  60 e3 46 3d 31 b8 46 28  |..dVA...`.F=1.F(|
00000720  4d 29 3a 78 3d 49 2b 28  28 46 2d 31 29 81 52 29  |M):x=I+((F-1).R)|
00000730  2a 45 3a 79 3d 4a 2b 28  28 46 2d 31 29 83 52 29  |*E:y=J+((F-1).R)|
00000740  2a 28 31 2b 54 29 3a f1  8a 78 2c 79 29 45 24 3b  |*(1+T):..x,y)E$;|
00000750  c1 49 24 2c 46 2c 31 29  3b 46 24 3b 3a e7 28 4d  |.I$,F,1);F$;:.(M|
00000760  3d 4c 29 80 41 28 46 29  8c f1 8a 78 2b 32 2c 79  |=L).A(F)...x+2,y|
00000770  29 22 2a 22 3b 0d 01 cc  17 f1 8a 78 2b 33 2c 79  |)"*";......x+3,y|
00000780  29 46 24 28 4d 2c 46 29  3b 3a ed 46 0d 01 d6 05  |)F$(M,F);:.F....|
00000790  e1 0d 01 e0 23 dd f2 50  28 50 24 29 3a f1 8a 28  |....#..P(P$):..(|
000007a0  57 2d a9 28 50 24 29 29  2f 32 2c 58 2d 33 29 50  |W-.(P$))/2,X-3)P|
000007b0  24 3b 3a e1 0d 01 ea 18  dd f2 73 3a ef 32 33 2c  |$;:.......s:.23,|
000007c0  31 2c 30 3b 30 3b 30 3b  30 3b 3a e1 0d 01 f4 18  |1,0;0;0;0;:.....|
000007d0  dd f2 72 3a ef 32 33 2c  31 2c 31 3b 30 3b 30 3b  |..r:.23,1,1;0;0;|
000007e0  30 3b 3a e1 0d 01 fe 3c  d9 23 30 3a 41 24 3d 22  |0;:....<.#0:A$="|
000007f0  22 3a e7 9f 3c 3e 31 37  f6 3a f1 22 20 61 74 20  |":..<>17.:." at |
00000800  6c 69 6e 65 20 22 3b 9e  3a d1 3d 30 3a f5 3a fd  |line ";.:.=0:.:.|
00000810  91 3e 35 30 3a e7 51 25  3d 37 32 e5 8d 54 66 42  |.>50:.Q%=72..TfB|
00000820  0d 02 08 0f e7 51 25 3c  3e 37 32 eb 36 3a e0 0d  |.....Q%<>72.6:..|
00000830  02 12 f3 d4 26 31 33 2c  30 2c 30 2c 31 3a d4 26  |....&13,0,0,1:.&|
00000840  31 32 2c 30 2c 30 2c 31  3a d4 26 31 31 2c 30 2c  |12,0,0,1:.&11,0,|
00000850  30 2c 31 3a d4 26 31 30  2c 30 2c 30 2c 31 3a d4  |0,1:.&10,0,0,1:.|
00000860  26 31 33 2c 30 2c 30 2c  31 3a d4 26 31 32 2c 30  |&13,0,0,1:.&12,0|
00000870  2c 30 2c 31 3a d4 26 31  31 2c 30 2c 30 2c 31 3a  |,0,1:.&11,0,0,1:|
00000880  d4 26 31 30 2c 30 2c 30  2c 31 3a f5 3a eb 34 3a  |.&10,0,0,1:.:.4:|
00000890  f2 73 3a db 3a f2 43 28  22 57 68 69 63 68 20 64  |.s:.:.C("Which d|
000008a0  6f 20 79 6f 75 20 77 61  6e 74 20 74 6f 20 64 6f  |o you want to do|
000008b0  20 3f 22 2c 31 30 29 3a  f1 8a 31 30 2c bc 2b 33  | ?",10):..10,.+3|
000008c0  29 22 22 3b 3a f2 67 28  22 52 22 29 3a f1 22 65  |)"";:.g("R"):."e|
000008d0  70 65 61 74 20 74 68 69  73 20 70 72 6f 67 72 61  |peat this progra|
000008e0  6d 22 3a f1 8a 31 30 2c  bc 2b 31 29 22 52 65 74  |m":..10,.+1)"Ret|
000008f0  75 72 6e 20 74 6f 20 6d  61 69 6e 20 22 3b 3a f2  |urn to main ";:.|
00000900  67 28 22 4d 22 29 3a f1  22 65 6e 75 22 3a f1 8a  |g("M"):."enu":..|
00000910  31 30 2c bc 2b 31 29 22  22 3b 3a f2 67 28 22 45  |10,.+1)"";:.g("E|
00000920  22 29 0d 02 1c 96 f1 22  78 69 74 20 66 72 6f 6d  |")....."xit from|
00000930  20 64 69 73 63 22 3a f1  8a 30 2c bc 2b 33 29 22  | disc":..0,.+3)"|
00000940  43 68 6f 6f 73 65 20 66  72 6f 6d 20 22 3b 3a f2  |Choose from ";:.|
00000950  67 28 22 52 22 29 3a f1  22 65 70 65 61 74 2c 20  |g("R"):."epeat, |
00000960  22 3b 3a f2 67 28 22 4d  22 29 3a f1 22 65 6e 75  |";:.g("M"):."enu|
00000970  20 6f 72 20 22 3b 3a f2  67 28 22 45 22 29 3a f1  | or ";:.g("E"):.|
00000980  22 78 69 74 20 22 3b 3a  41 24 3d be 3a fd 28 41  |"xit ";:A$=.:.(A|
00000990  24 3d 22 52 22 29 84 28  41 24 3d 22 4d 22 29 84  |$="R").(A$="M").|
000009a0  28 41 24 3d 22 45 22 29  3a db 3a e7 41 24 3d 22  |(A$="E"):.:.A$="|
000009b0  52 22 8c e5 8d 54 68 40  0d 02 26 16 e7 41 24 3d  |R"...Th@..&..A$=|
000009c0  22 4d 22 8c 50 25 3d 31  8b 50 25 3d 31 37 0d 02  |"M".P%=1.P%=17..|
000009d0  30 08 2a 46 58 34 0d 02  3a 10 ef 32 31 3a 2a 46  |0.*FX4..:..21:*F|
000009e0  58 32 32 30 2c 30 0d 02  44 0b 2a 46 58 31 35 2c  |X220,0..D.*FX15,|
000009f0  31 0d 02 4e 0c 2a 46 58  32 30 31 2c 31 0d 02 58  |1..N.*FX201,1..X|
00000a00  12 2a 44 49 52 20 24 2e  57 65 6c 63 6f 6d 65 0d  |.*DIR $.Welcome.|
00000a10  02 62 0d d7 22 42 4f 4f  54 22 3a e0 0d 02 6c 22  |.b.."BOOT":...l"|
00000a20  dd f2 67 28 41 24 29 3a  fb 30 3a fb 31 33 35 3a  |..g(A$):.0:.135:|
00000a30  f1 41 24 3b 3a fb 37 3a  fb 31 32 38 3a e1 0d 02  |.A$;:.7:.128:...|
00000a40  76 23 dd f2 43 28 41 24  2c 79 25 29 f1 8a 28 33  |v#..C(A$,y%)..(3|
00000a50  38 2d a9 41 24 29 2f 32  2c 79 25 29 41 24 3b 3a  |8-.A$)/2,y%)A$;:|
00000a60  e1 0d ff                                          |...|
00000a63
LIBRARY/Basic/Utils.m0
LIBRARY/Basic/Utils.m1
LIBRARY/Basic/Utils.m2
LIBRARY/Basic/Utils.m4
LIBRARY/Basic/Utils.m5