Home » CEEFAX disks » telesoftware11.adl » 01-01-89/ALPH
01-01-89/ALPH
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 » CEEFAX disks » telesoftware11.adl |
Filename: | 01-01-89/ALPH |
Read OK: | ✔ |
File size: | 053E bytes |
Load address: | FFFF1500 |
Exec address: | FFFF8023 |
Duplicates
There is 1 duplicate copy of this file in the archive:
- CEEFAX disks » telesoftware11.adl » 01-01-89/ALPH
- CEEFAX disks » telesoftware7.adl » 06-05-88/ALPH
File contents
10REM Program Store 20REM Alpha Sort 30REM By P.J.Homer G4KQU <c>1987 40*FX11,0 50VDU23,1,0;0;0;0; 60PA%=1:N%=300:F=52:Z%=0:D%=1 70CLOSE#0 80PROCINFO 90PROCCHECK 100FILE%=N%+1 110CH=OPENIN(FILE$) 120PTR#CH=(FILE%-1)*F 130INPUT#CH,Q$,Q$,DEL,PRO 140N%=PRO 150DIMA%(N%),B$(N%) 160FORI%=1TON% 170PTR#CH=(I%-1)*F 180INPUT#CH,A$,B$ 190B$(I%)=LEFT$(B$,8) 200A%(I%)=I% 210NEXT 220PROCsort 230PROCPRINTOUT2 240Q%=Z:CHAIN"SETUP" 250DEFPROCsort 260LOCALC%,F%,G%,I%,T%,U$ 270G%=N% 280REPEAT 290G%=G%DIV2 300C%=N%-G% 310REPEAT 320F%=FALSE 330FORI%=1TOC% 340P%=I%+G% 350IFB$(I%)>B$(P%)THENPROCCHANGE 360NEXT 370UNTILF%=FALSE 380UNTILG%<=1 390ENDPROC 400DEFPROCCHANGE 410T%=A%(I%) 420A%(I%)=A%(P%) 430A%(P%)=T% 440U$=B$(I%) 450B$(I%)=B$(P%) 460B$(P%)=U$ 470F%=TRUE 480ENDPROC 490DEFPROCINFO 500Z=Q% 510IFZ=1THENFILE$="GAMES" 520IFZ=2THENFILE$="ADVENT" 530IFZ=3THENFILE$="MUSIC" 540IFZ=4THENFILE$="EDUCATE" 550IFZ=5THENFILE$="UTIL" 560IFZ=6THENFILE$="SPARE1" 570IFZ=7THENFILE$="SPARE2" 580ENDPROC 590DEFPROCPRINTOUT2 600VDU2 610PROCPAGE:PROCHEAD 620FORI%=1TON% 630PTR#CH=(A%(I%)-1)*F 640INPUT#CH,A$,B$,C$,D$ 650IFB$(I%)="@"THEN670 660PRINTTAB(0)A%(I%)TAB(15)A$TAB(25)B$TAB(55)C$TAB(65)D$:Z%=Z%+1:IFZ%=56THENPROCCUT:PROCPAGE:PROCHEAD 670NEXT 680VDU1,12 690VDU3:CLS 700ENDPROC 710DEFPROCCUT 720Z%=0:VDU1,12:ENDPROC 730DEFPROCPAGE 740PRINTTAB(36)"( ";PA%;" )"TAB(47);FILE$:PA%=PA%+1:ENDPROC 750DEFPROCHEAD 760PRINTTAB(5)"RECORD"TAB(15)"DISC"TAB(25)"PROGRAM"TAB(55)"FILE"TAB(65)"AUTHOR":PRINTSTRING$(80,"-"):ENDPROC 770DEFPROCCHECK 780CH=OPENIN(FILE$) 790IFCH=0THENCLS:PRINTTAB(3,10)"�FILE�";FILE$;"�IS NOT ON THE DISC":PRINT'''"�>>�PRESS ANY KEY TO RETURN TO MENU�<<":Z$=GET$:CHAIN"SETUP" 800CLOSE#0:ENDPROC
� Program Store � Alpha Sort � By P.J.Homer G4KQU <c>1987 (*FX11,0 2�23,1,0;0;0;0; <PA%=1:N%=300:F=52:Z%=0:D%=1 F�#0 P �INFO Z �CHECK dFILE%=N%+1 nCH=�(FILE$) x�#CH=(FILE%-1)*F ��#CH,Q$,Q$,DEL,PRO � N%=PRO ��A%(N%),B$(N%) ��I%=1�N% ��#CH=(I%-1)*F ��#CH,A$,B$ �B$(I%)=�B$,8) � A%(I%)=I% �� � �sort ��PRINTOUT2 �Q%=Z:�"SETUP" � ��sort �C%,F%,G%,I%,T%,U$ G%=N% � "G%=G%�2 ,C%=N%-G% 6� @F%=� J�I%=1�C% TP%=I%+G% ^�B$(I%)>B$(P%)��CHANGE h� r �F%=� | �G%<=1 �� ���CHANGE � T%=A%(I%) �A%(I%)=A%(P%) � A%(P%)=T% � U$=B$(I%) �B$(I%)=B$(P%) � B$(P%)=U$ �F%=� �� � ��INFO �Z=Q% ��Z=1�FILE$="GAMES" �Z=2�FILE$="ADVENT" �Z=3�FILE$="MUSIC" �Z=4�FILE$="EDUCATE" &�Z=5�FILE$="UTIL" 0�Z=6�FILE$="SPARE1" :�Z=7�FILE$="SPARE2" D� N��PRINTOUT2 X�2 b�PAGE:�HEAD l�I%=1�N% v�#CH=(A%(I%)-1)*F ��#CH,A$,B$,C$,D$ ��B$(I%)="@"��t^B �F�0)A%(I%)�15)A$�25)B$�55)C$�65)D$:Z%=Z%+1:�Z%=56��CUT:�PAGE:�HEAD �� � �1,12 ��3:� �� � ��CUT �Z%=0:�1,12:� � ��PAGE �,�36)"( ";PA%;" )"�47);FILE$:PA%=PA%+1:� � ��HEAD �I�5)"RECORD"�15)"DISC"�25)"PROGRAM"�55)"FILE"�65)"AUTHOR":��80,"-"):� ��CHECK CH=�(FILE$) r�CH=0��:�3,10)"�FILE�";FILE$;"�IS NOT ON THE DISC":�'''"�>>�PRESS ANY KEY TO RETURN TO MENU�<<":Z$=�:�"SETUP" �#0:� �
00000000 0d 00 0a 13 f4 20 50 72 6f 67 72 61 6d 20 53 74 |..... Program St| 00000010 6f 72 65 0d 00 14 10 f4 20 41 6c 70 68 61 20 53 |ore..... Alpha S| 00000020 6f 72 74 0d 00 1e 20 f4 20 42 79 20 50 2e 4a 2e |ort... . By P.J.| 00000030 48 6f 6d 65 72 20 47 34 4b 51 55 20 3c 63 3e 31 |Homer G4KQU <c>1| 00000040 39 38 37 0d 00 28 0b 2a 46 58 31 31 2c 30 0d 00 |987..(.*FX11,0..| 00000050 32 12 ef 32 33 2c 31 2c 30 3b 30 3b 30 3b 30 3b |2..23,1,0;0;0;0;| 00000060 0d 00 3c 1f 50 41 25 3d 31 3a 4e 25 3d 33 30 30 |..<.PA%=1:N%=300| 00000070 3a 46 3d 35 32 3a 5a 25 3d 30 3a 44 25 3d 31 0d |:F=52:Z%=0:D%=1.| 00000080 00 46 07 d9 23 30 0d 00 50 09 f2 49 4e 46 4f 0d |.F..#0..P..INFO.| 00000090 00 5a 0a f2 43 48 45 43 4b 0d 00 64 0e 46 49 4c |.Z..CHECK..d.FIL| 000000a0 45 25 3d 4e 25 2b 31 0d 00 6e 0f 43 48 3d 8e 28 |E%=N%+1..n.CH=.(| 000000b0 46 49 4c 45 24 29 0d 00 78 14 cf 23 43 48 3d 28 |FILE$)..x..#CH=(| 000000c0 46 49 4c 45 25 2d 31 29 2a 46 0d 00 82 16 e8 23 |FILE%-1)*F.....#| 000000d0 43 48 2c 51 24 2c 51 24 2c 44 45 4c 2c 50 52 4f |CH,Q$,Q$,DEL,PRO| 000000e0 0d 00 8c 0a 4e 25 3d 50 52 4f 0d 00 96 12 de 41 |....N%=PRO.....A| 000000f0 25 28 4e 25 29 2c 42 24 28 4e 25 29 0d 00 a0 0c |%(N%),B$(N%)....| 00000100 e3 49 25 3d 31 b8 4e 25 0d 00 aa 11 cf 23 43 48 |.I%=1.N%.....#CH| 00000110 3d 28 49 25 2d 31 29 2a 46 0d 00 b4 0e e8 23 43 |=(I%-1)*F.....#C| 00000120 48 2c 41 24 2c 42 24 0d 00 be 11 42 24 28 49 25 |H,A$,B$....B$(I%| 00000130 29 3d c0 42 24 2c 38 29 0d 00 c8 0d 41 25 28 49 |)=.B$,8)....A%(I| 00000140 25 29 3d 49 25 0d 00 d2 05 ed 0d 00 dc 09 f2 73 |%)=I%..........s| 00000150 6f 72 74 0d 00 e6 0e f2 50 52 49 4e 54 4f 55 54 |ort.....PRINTOUT| 00000160 32 0d 00 f0 11 51 25 3d 5a 3a d7 22 53 45 54 55 |2....Q%=Z:."SETU| 00000170 50 22 0d 00 fa 0a dd f2 73 6f 72 74 0d 01 04 16 |P"......sort....| 00000180 ea 43 25 2c 46 25 2c 47 25 2c 49 25 2c 54 25 2c |.C%,F%,G%,I%,T%,| 00000190 55 24 0d 01 0e 09 47 25 3d 4e 25 0d 01 18 05 f5 |U$....G%=N%.....| 000001a0 0d 01 22 0b 47 25 3d 47 25 81 32 0d 01 2c 0c 43 |..".G%=G%.2..,.C| 000001b0 25 3d 4e 25 2d 47 25 0d 01 36 05 f5 0d 01 40 08 |%=N%-G%..6....@.| 000001c0 46 25 3d a3 0d 01 4a 0c e3 49 25 3d 31 b8 43 25 |F%=...J..I%=1.C%| 000001d0 0d 01 54 0c 50 25 3d 49 25 2b 47 25 0d 01 5e 1a |..T.P%=I%+G%..^.| 000001e0 e7 42 24 28 49 25 29 3e 42 24 28 50 25 29 8c f2 |.B$(I%)>B$(P%)..| 000001f0 43 48 41 4e 47 45 0d 01 68 05 ed 0d 01 72 09 fd |CHANGE..h....r..| 00000200 46 25 3d a3 0d 01 7c 0a fd 47 25 3c 3d 31 0d 01 |F%=...|..G%<=1..| 00000210 86 05 e1 0d 01 90 0c dd f2 43 48 41 4e 47 45 0d |.........CHANGE.| 00000220 01 9a 0d 54 25 3d 41 25 28 49 25 29 0d 01 a4 11 |...T%=A%(I%)....| 00000230 41 25 28 49 25 29 3d 41 25 28 50 25 29 0d 01 ae |A%(I%)=A%(P%)...| 00000240 0d 41 25 28 50 25 29 3d 54 25 0d 01 b8 0d 55 24 |.A%(P%)=T%....U$| 00000250 3d 42 24 28 49 25 29 0d 01 c2 11 42 24 28 49 25 |=B$(I%)....B$(I%| 00000260 29 3d 42 24 28 50 25 29 0d 01 cc 0d 42 24 28 50 |)=B$(P%)....B$(P| 00000270 25 29 3d 55 24 0d 01 d6 08 46 25 3d b9 0d 01 e0 |%)=U$....F%=....| 00000280 05 e1 0d 01 ea 0a dd f2 49 4e 46 4f 0d 01 f4 08 |........INFO....| 00000290 5a 3d 51 25 0d 01 fe 16 e7 5a 3d 31 8c 46 49 4c |Z=Q%.....Z=1.FIL| 000002a0 45 24 3d 22 47 41 4d 45 53 22 0d 02 08 17 e7 5a |E$="GAMES".....Z| 000002b0 3d 32 8c 46 49 4c 45 24 3d 22 41 44 56 45 4e 54 |=2.FILE$="ADVENT| 000002c0 22 0d 02 12 16 e7 5a 3d 33 8c 46 49 4c 45 24 3d |".....Z=3.FILE$=| 000002d0 22 4d 55 53 49 43 22 0d 02 1c 18 e7 5a 3d 34 8c |"MUSIC".....Z=4.| 000002e0 46 49 4c 45 24 3d 22 45 44 55 43 41 54 45 22 0d |FILE$="EDUCATE".| 000002f0 02 26 15 e7 5a 3d 35 8c 46 49 4c 45 24 3d 22 55 |.&..Z=5.FILE$="U| 00000300 54 49 4c 22 0d 02 30 17 e7 5a 3d 36 8c 46 49 4c |TIL"..0..Z=6.FIL| 00000310 45 24 3d 22 53 50 41 52 45 31 22 0d 02 3a 17 e7 |E$="SPARE1"..:..| 00000320 5a 3d 37 8c 46 49 4c 45 24 3d 22 53 50 41 52 45 |Z=7.FILE$="SPARE| 00000330 32 22 0d 02 44 05 e1 0d 02 4e 0f dd f2 50 52 49 |2"..D....N...PRI| 00000340 4e 54 4f 55 54 32 0d 02 58 06 ef 32 0d 02 62 0f |NTOUT2..X..2..b.| 00000350 f2 50 41 47 45 3a f2 48 45 41 44 0d 02 6c 0c e3 |.PAGE:.HEAD..l..| 00000360 49 25 3d 31 b8 4e 25 0d 02 76 15 cf 23 43 48 3d |I%=1.N%..v..#CH=| 00000370 28 41 25 28 49 25 29 2d 31 29 2a 46 0d 02 80 14 |(A%(I%)-1)*F....| 00000380 e8 23 43 48 2c 41 24 2c 42 24 2c 43 24 2c 44 24 |.#CH,A$,B$,C$,D$| 00000390 0d 02 8a 14 e7 42 24 28 49 25 29 3d 22 40 22 8c |.....B$(I%)="@".| 000003a0 8d 74 5e 42 0d 02 94 46 f1 8a 30 29 41 25 28 49 |.t^B...F..0)A%(I| 000003b0 25 29 8a 31 35 29 41 24 8a 32 35 29 42 24 8a 35 |%).15)A$.25)B$.5| 000003c0 35 29 43 24 8a 36 35 29 44 24 3a 5a 25 3d 5a 25 |5)C$.65)D$:Z%=Z%| 000003d0 2b 31 3a e7 5a 25 3d 35 36 8c f2 43 55 54 3a f2 |+1:.Z%=56..CUT:.| 000003e0 50 41 47 45 3a f2 48 45 41 44 0d 02 9e 05 ed 0d |PAGE:.HEAD......| 000003f0 02 a8 09 ef 31 2c 31 32 0d 02 b2 08 ef 33 3a db |....1,12.....3:.| 00000400 0d 02 bc 05 e1 0d 02 c6 09 dd f2 43 55 54 0d 02 |...........CUT..| 00000410 d0 10 5a 25 3d 30 3a ef 31 2c 31 32 3a e1 0d 02 |..Z%=0:.1,12:...| 00000420 da 0a dd f2 50 41 47 45 0d 02 e4 2c f1 8a 33 36 |....PAGE...,..36| 00000430 29 22 28 20 22 3b 50 41 25 3b 22 20 29 22 8a 34 |)"( ";PA%;" )".4| 00000440 37 29 3b 46 49 4c 45 24 3a 50 41 25 3d 50 41 25 |7);FILE$:PA%=PA%| 00000450 2b 31 3a e1 0d 02 ee 0a dd f2 48 45 41 44 0d 02 |+1:.......HEAD..| 00000460 f8 49 f1 8a 35 29 22 52 45 43 4f 52 44 22 8a 31 |.I..5)"RECORD".1| 00000470 35 29 22 44 49 53 43 22 8a 32 35 29 22 50 52 4f |5)"DISC".25)"PRO| 00000480 47 52 41 4d 22 8a 35 35 29 22 46 49 4c 45 22 8a |GRAM".55)"FILE".| 00000490 36 35 29 22 41 55 54 48 4f 52 22 3a f1 c4 38 30 |65)"AUTHOR":..80| 000004a0 2c 22 2d 22 29 3a e1 0d 03 02 0b dd f2 43 48 45 |,"-"):.......CHE| 000004b0 43 4b 0d 03 0c 0f 43 48 3d 8e 28 46 49 4c 45 24 |CK....CH=.(FILE$| 000004c0 29 0d 03 16 72 e7 43 48 3d 30 8c db 3a f1 8a 33 |)...r.CH=0..:..3| 000004d0 2c 31 30 29 22 86 46 49 4c 45 84 22 3b 46 49 4c |,10)".FILE.";FIL| 000004e0 45 24 3b 22 86 49 53 20 4e 4f 54 20 4f 4e 20 54 |E$;".IS NOT ON T| 000004f0 48 45 20 44 49 53 43 22 3a f1 27 27 27 22 84 3e |HE DISC":.'''".>| 00000500 3e 88 50 52 45 53 53 20 41 4e 59 20 4b 45 59 20 |>.PRESS ANY KEY | 00000510 54 4f 20 52 45 54 55 52 4e 20 54 4f 20 4d 45 4e |TO RETURN TO MEN| 00000520 55 89 3c 3c 22 3a 5a 24 3d be 3a d7 22 53 45 54 |U.<<":Z$=.:."SET| 00000530 55 50 22 0d 03 20 09 d9 23 30 3a e1 0d ff |UP".. ..#0:...| 0000053e