Home » CEEFAX disks » telesoftware2.adl » 07_10_87/TEXTRD

07_10_87/TEXTRD

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 » telesoftware2.adl
Filename: 07_10_87/TEXTRD
Read OK:
File size: 0775 bytes
Load address: 1900
Exec address: 8023
File contents
   10REM"�TEXT FILE DISPLAY
   20REM"�FOR MACHINES WITHOUT DISCS
   30REM"�Version 1.4
   40:
   50*TV0,1
   60MODE7
   70pound=35:REM"�Printers code for `
   80REM"�For #, string=<no. of elements>,code1,code2,....,code n
   90hash$="07,27,82,00,35,27,82,03"
  100PROCheading
  110PRINTTAB(0,4)" �The Telesoftware text file required    �must have been downloaded and saved."
  120PRINT'"� Please enter the filename of text:"
  130INPUT" �"fname$
  140PROCheading:PRINTTAB(0,5)"� Text file: �"fname$
  150PRINT'" �Send output to a printer?�";
  160A$=GET$:IFA$="Y" ORA$="y" prt%=TRUE:PRINT"Yes":ELSEprt%=FALSE:PRINT"No"
  170PRINT'" �Prevent screen scrolling?�";
  180A$=GET$:IFA$="Y" ORA$="y" scr%=TRUE:PRINT"Yes":ELSEscr%=FALSE:PRINT"No"
  190PRINT'" �Additional left margin?�";
  200A$=GET$:IFA$="Y" ORA$="y" PRINT"Yes":lm$=FNsp:ELSElm$="":PRINT"No"
  210PROCreport
  220IFW=9 GOTO50
  230ONERRORGOTO620
  240MODE3
  250Q=OPENUP(fname$)
  260IF scr% PRINT"P r e s s   S H I F T   f o r   n e x t   p a g e ":VDU14
  270PRINT"P r i n t e r   O u t p u t   O ";:IFprt%=TRUE VDU110,13,10,10,2 ELSE PRINT"f f"''
  280PRINTlm$;
  290REPEAT:L%=BGET#Q
  300IFL%=10 PROClf(13):GOTO360
  310IFL%=13 PROClf(10):GOTO360
  320IFL%<32 L%=32
  330IFL%=ASC"`" ANDprt%=TRUE VDU3,96,2,1,pound:GOTO360
  340IFL%=ASC"#" ANDprt%=TRUE PROChash:GOTO360
  350VDUL%
  360UNTILEOF#Q
  370VDU3
  380CLOSE#Q
  390PRINT'''"*   *   *        D o c u m e n t   c o m p l e t e        *   *   *"
  400END
  410DEFPROCheading
  420CLS
  430PRINT'CHR$141;"���   TEXT FILE DISPLAY UTILITY"
  440PRINTCHR$141;"���   TEXT FILE DISPLAY UTILITY"
  450ENDPROC
  460DEFPROCreport
  470PROCheading
  480PRINT''" �File:�";fname$
  490PRINT''"� Printer:�";:IFprt% PRINT"On" ELSE PRINT"Off"
  500PRINT''" �Scroll:�";:IFscr% PRINT"No" ELSE PRINT"Yes"
  510PRINT''" �Left margin:�";:IFlm$="" PRINT"None" ELSE PRINT;LEN(lm$);" spaces"
  520PRINT''" �SPACE�to continue, or�TAB�to re-run"
  530REPEAT:W=GET:UNTILW=32 ORW=9
  540ENDPROC
  550DEFPROClf(no)
  560IFPTR#Q=EXT#Q GOTO580
  570F%=BGET#Q:IF F%<>no:PTR#Q=(PTR#Q)-1
  580VDU10,13
  590PRINT;lm$;
  600ENDPROC
  610REM"�ERROR
  620ONERROROFF
  630CLOSE#0
  640VDU3:MODE7
  650PROCheading
  660PRINT'"� Error�";ERR;"�detected at line�";ERL''
  670END
  680DEFPROChash
  690FORX%=1TOVAL(hash$)
  700code%=VAL(MID$(hash$,X%*3+1,2))
  710VDU2,1,code%
  720NEXT
  730VDU3,ASC"#",2
  740ENDPROC
  750DEFFNsp
  760PRINT"   �How many spaces?�";
  770INPUT""A%:IFA%<0 OR A%>40 PRINT"   �Silly!":GOTO760
  780=STRING$(A%," ")

�"�TEXT FILE DISPLAY
!�"�FOR MACHINES WITHOUT DISCS
�"�Version 1.4
(:
2
*TV0,1
<�7
F#pound=35:�"�Printers code for `
P>�"�For #, string=<no. of elements>,code1,code2,....,code n
Z#hash$="07,27,82,00,35,27,82,03"
d�heading
nZ�0,4)" �The Telesoftware text file required    �must have been downloaded and saved."
x,�'"� Please enter the filename of text:"
��" �"fname$
�)�heading:�0,5)"� Text file: �"fname$
�%�'" �Send output to a printer?�";
�4A$=�:�A$="Y" �A$="y" prt%=�:�"Yes":�prt%=�:�"No"
�%�'" �Prevent screen scrolling?�";
�4A$=�:�A$="Y" �A$="y" scr%=�:�"Yes":�scr%=�:�"No"
�#�'" �Additional left margin?�";
�5A$=�:�A$="Y" �A$="y" �"Yes":lm$=�sp:�lm$="":�"No"
��report
��W=9 �Tr@
���DlB
��3
�Q=�(fname$)
D� scr% �"P r e s s   S H I F T   f o r   n e x t   p a g e ":�14
K�"P r i n t e r   O u t p u t   O ";:�prt%=� �110,13,10,10,2 � �"f f"''
	�lm$;
"�:L%=�#Q
,�L%=10 �lf(13):�DhA
6�L%=13 �lf(10):�DhA
@�L%<32 L%=32
J*�L%=�"`" �prt%=� �3,96,2,1,pound:�DhA
T �L%=�"#" �prt%=� �hash:�DhA
^�L%
h��#Q
r�3
|�#Q
�M�'''"*   *   *        D o c u m e n t   c o m p l e t e        *   *   *"
��
�
��heading
��
�,�'�141;"���   TEXT FILE DISPLAY UTILITY"
�+�141;"���   TEXT FILE DISPLAY UTILITY"
��
���report
��heading
��''" �File:�";fname$
�*�''"� Printer:�";:�prt% �"On" � �"Off"
�)�''" �Scroll:�";:�scr% �"No" � �"Yes"
�>�''" �Left margin:�";:�lm$="" �"None" � �;�(lm$);" spaces"
.�''" �SPACE�to continue, or�TAB�to re-run"
�:W=�:�W=32 �W=9
�
&��lf(no)
0�#Q=�#Q �DDB
:F%=�#Q:� F%<>no:�#Q=(�#Q)-1
D
�10,13
N
�;lm$;
X�
b�"�ERROR
l
v�#0
�	�3:�7
��heading
�+�'"� Error�";�;"�detected at line�";�''
��
�
��hash
��X%=1��(hash$)
�code%=�(�hash$,X%*3+1,2))
��2,1,code%
��
�
�3,�"#",2
��
�ݤsp
��"   �How many spaces?�";
+�""A%:�A%<0 � A%>40 �"   �Silly!":�dxB

=�A%," ")
�
00000000  0d 00 0a 18 f4 22 81 54  45 58 54 20 46 49 4c 45  |.....".TEXT FILE|
00000010  20 44 49 53 50 4c 41 59  0d 00 14 21 f4 22 81 46  | DISPLAY...!.".F|
00000020  4f 52 20 4d 41 43 48 49  4e 45 53 20 57 49 54 48  |OR MACHINES WITH|
00000030  4f 55 54 20 44 49 53 43  53 0d 00 1e 12 f4 22 83  |OUT DISCS.....".|
00000040  56 65 72 73 69 6f 6e 20  31 2e 34 0d 00 28 05 3a  |Version 1.4..(.:|
00000050  0d 00 32 0a 2a 54 56 30  2c 31 0d 00 3c 06 eb 37  |..2.*TV0,1..<..7|
00000060  0d 00 46 23 70 6f 75 6e  64 3d 33 35 3a f4 22 81  |..F#pound=35:.".|
00000070  50 72 69 6e 74 65 72 73  20 63 6f 64 65 20 66 6f  |Printers code fo|
00000080  72 20 60 0d 00 50 3e f4  22 81 46 6f 72 20 23 2c  |r `..P>.".For #,|
00000090  20 73 74 72 69 6e 67 3d  3c 6e 6f 2e 20 6f 66 20  | string=<no. of |
000000a0  65 6c 65 6d 65 6e 74 73  3e 2c 63 6f 64 65 31 2c  |elements>,code1,|
000000b0  63 6f 64 65 32 2c 2e 2e  2e 2e 2c 63 6f 64 65 20  |code2,....,code |
000000c0  6e 0d 00 5a 23 68 61 73  68 24 3d 22 30 37 2c 32  |n..Z#hash$="07,2|
000000d0  37 2c 38 32 2c 30 30 2c  33 35 2c 32 37 2c 38 32  |7,82,00,35,27,82|
000000e0  2c 30 33 22 0d 00 64 0c  f2 68 65 61 64 69 6e 67  |,03"..d..heading|
000000f0  0d 00 6e 5a f1 8a 30 2c  34 29 22 20 82 54 68 65  |..nZ..0,4)" .The|
00000100  20 54 65 6c 65 73 6f 66  74 77 61 72 65 20 74 65  | Telesoftware te|
00000110  78 74 20 66 69 6c 65 20  72 65 71 75 69 72 65 64  |xt file required|
00000120  20 20 20 20 82 6d 75 73  74 20 68 61 76 65 20 62  |    .must have b|
00000130  65 65 6e 20 64 6f 77 6e  6c 6f 61 64 65 64 20 61  |een downloaded a|
00000140  6e 64 20 73 61 76 65 64  2e 22 0d 00 78 2c f1 27  |nd saved."..x,.'|
00000150  22 83 20 50 6c 65 61 73  65 20 65 6e 74 65 72 20  |". Please enter |
00000160  74 68 65 20 66 69 6c 65  6e 61 6d 65 20 6f 66 20  |the filename of |
00000170  74 65 78 74 3a 22 0d 00  82 0f e8 22 20 82 22 66  |text:"....." ."f|
00000180  6e 61 6d 65 24 0d 00 8c  29 f2 68 65 61 64 69 6e  |name$...).headin|
00000190  67 3a f1 8a 30 2c 35 29  22 83 20 54 65 78 74 20  |g:..0,5)". Text |
000001a0  66 69 6c 65 3a 20 82 22  66 6e 61 6d 65 24 0d 00  |file: ."fname$..|
000001b0  96 25 f1 27 22 20 83 53  65 6e 64 20 6f 75 74 70  |.%.'" .Send outp|
000001c0  75 74 20 74 6f 20 61 20  70 72 69 6e 74 65 72 3f  |ut to a printer?|
000001d0  82 22 3b 0d 00 a0 34 41  24 3d be 3a e7 41 24 3d  |.";...4A$=.:.A$=|
000001e0  22 59 22 20 84 41 24 3d  22 79 22 20 70 72 74 25  |"Y" .A$="y" prt%|
000001f0  3d b9 3a f1 22 59 65 73  22 3a 8b 70 72 74 25 3d  |=.:."Yes":.prt%=|
00000200  a3 3a f1 22 4e 6f 22 0d  00 aa 25 f1 27 22 20 83  |.:."No"...%.'" .|
00000210  50 72 65 76 65 6e 74 20  73 63 72 65 65 6e 20 73  |Prevent screen s|
00000220  63 72 6f 6c 6c 69 6e 67  3f 82 22 3b 0d 00 b4 34  |crolling?.";...4|
00000230  41 24 3d be 3a e7 41 24  3d 22 59 22 20 84 41 24  |A$=.:.A$="Y" .A$|
00000240  3d 22 79 22 20 73 63 72  25 3d b9 3a f1 22 59 65  |="y" scr%=.:."Ye|
00000250  73 22 3a 8b 73 63 72 25  3d a3 3a f1 22 4e 6f 22  |s":.scr%=.:."No"|
00000260  0d 00 be 23 f1 27 22 20  83 41 64 64 69 74 69 6f  |...#.'" .Additio|
00000270  6e 61 6c 20 6c 65 66 74  20 6d 61 72 67 69 6e 3f  |nal left margin?|
00000280  82 22 3b 0d 00 c8 35 41  24 3d be 3a e7 41 24 3d  |.";...5A$=.:.A$=|
00000290  22 59 22 20 84 41 24 3d  22 79 22 20 f1 22 59 65  |"Y" .A$="y" ."Ye|
000002a0  73 22 3a 6c 6d 24 3d a4  73 70 3a 8b 6c 6d 24 3d  |s":lm$=.sp:.lm$=|
000002b0  22 22 3a f1 22 4e 6f 22  0d 00 d2 0b f2 72 65 70  |"":."No".....rep|
000002c0  6f 72 74 0d 00 dc 0e e7  57 3d 39 20 e5 8d 54 72  |ort.....W=9 ..Tr|
000002d0  40 0d 00 e6 0b ee 85 e5  8d 44 6c 42 0d 00 f0 06  |@........DlB....|
000002e0  eb 33 0d 00 fa 0f 51 3d  ad 28 66 6e 61 6d 65 24  |.3....Q=.(fname$|
000002f0  29 0d 01 04 44 e7 20 73  63 72 25 20 f1 22 50 20  |)...D. scr% ."P |
00000300  72 20 65 20 73 20 73 20  20 20 53 20 48 20 49 20  |r e s s   S H I |
00000310  46 20 54 20 20 20 66 20  6f 20 72 20 20 20 6e 20  |F T   f o r   n |
00000320  65 20 78 20 74 20 20 20  70 20 61 20 67 20 65 20  |e x t   p a g e |
00000330  22 3a ef 31 34 0d 01 0e  4b f1 22 50 20 72 20 69  |":.14...K."P r i|
00000340  20 6e 20 74 20 65 20 72  20 20 20 4f 20 75 20 74  | n t e r   O u t|
00000350  20 70 20 75 20 74 20 20  20 4f 20 22 3b 3a e7 70  | p u t   O ";:.p|
00000360  72 74 25 3d b9 20 ef 31  31 30 2c 31 33 2c 31 30  |rt%=. .110,13,10|
00000370  2c 31 30 2c 32 20 8b 20  f1 22 66 20 66 22 27 27  |,10,2 . ."f f"''|
00000380  0d 01 18 09 f1 6c 6d 24  3b 0d 01 22 0c f5 3a 4c  |.....lm$;.."..:L|
00000390  25 3d 9a 23 51 0d 01 2c  18 e7 4c 25 3d 31 30 20  |%=.#Q..,..L%=10 |
000003a0  f2 6c 66 28 31 33 29 3a  e5 8d 44 68 41 0d 01 36  |.lf(13):..DhA..6|
000003b0  18 e7 4c 25 3d 31 33 20  f2 6c 66 28 31 30 29 3a  |..L%=13 .lf(10):|
000003c0  e5 8d 44 68 41 0d 01 40  10 e7 4c 25 3c 33 32 20  |..DhA..@..L%<32 |
000003d0  4c 25 3d 33 32 0d 01 4a  2a e7 4c 25 3d 97 22 60  |L%=32..J*.L%=."`|
000003e0  22 20 80 70 72 74 25 3d  b9 20 ef 33 2c 39 36 2c  |" .prt%=. .3,96,|
000003f0  32 2c 31 2c 70 6f 75 6e  64 3a e5 8d 44 68 41 0d  |2,1,pound:..DhA.|
00000400  01 54 20 e7 4c 25 3d 97  22 23 22 20 80 70 72 74  |.T .L%=."#" .prt|
00000410  25 3d b9 20 f2 68 61 73  68 3a e5 8d 44 68 41 0d  |%=. .hash:..DhA.|
00000420  01 5e 07 ef 4c 25 0d 01  68 08 fd c5 23 51 0d 01  |.^..L%..h...#Q..|
00000430  72 06 ef 33 0d 01 7c 07  d9 23 51 0d 01 86 4d f1  |r..3..|..#Q...M.|
00000440  27 27 27 22 2a 20 20 20  2a 20 20 20 2a 20 20 20  |'''"*   *   *   |
00000450  20 20 20 20 20 44 20 6f  20 63 20 75 20 6d 20 65  |     D o c u m e|
00000460  20 6e 20 74 20 20 20 63  20 6f 20 6d 20 70 20 6c  | n t   c o m p l|
00000470  20 65 20 74 20 65 20 20  20 20 20 20 20 20 2a 20  | e t e        * |
00000480  20 20 2a 20 20 20 2a 22  0d 01 90 05 e0 0d 01 9a  |  *   *"........|
00000490  0d dd f2 68 65 61 64 69  6e 67 0d 01 a4 05 db 0d  |...heading......|
000004a0  01 ae 2c f1 27 bd 31 34  31 3b 22 81 9d 83 20 20  |..,.'.141;"...  |
000004b0  20 54 45 58 54 20 46 49  4c 45 20 44 49 53 50 4c  | TEXT FILE DISPL|
000004c0  41 59 20 55 54 49 4c 49  54 59 22 0d 01 b8 2b f1  |AY UTILITY"...+.|
000004d0  bd 31 34 31 3b 22 81 9d  83 20 20 20 54 45 58 54  |.141;"...   TEXT|
000004e0  20 46 49 4c 45 20 44 49  53 50 4c 41 59 20 55 54  | FILE DISPLAY UT|
000004f0  49 4c 49 54 59 22 0d 01  c2 05 e1 0d 01 cc 0c dd  |ILITY"..........|
00000500  f2 72 65 70 6f 72 74 0d  01 d6 0c f2 68 65 61 64  |.report.....head|
00000510  69 6e 67 0d 01 e0 18 f1  27 27 22 20 86 46 69 6c  |ing.....''" .Fil|
00000520  65 3a 81 22 3b 66 6e 61  6d 65 24 0d 01 ea 2a f1  |e:.";fname$...*.|
00000530  27 27 22 86 20 50 72 69  6e 74 65 72 3a 81 22 3b  |''". Printer:.";|
00000540  3a e7 70 72 74 25 20 f1  22 4f 6e 22 20 8b 20 f1  |:.prt% ."On" . .|
00000550  22 4f 66 66 22 0d 01 f4  29 f1 27 27 22 20 86 53  |"Off"...).''" .S|
00000560  63 72 6f 6c 6c 3a 81 22  3b 3a e7 73 63 72 25 20  |croll:.";:.scr% |
00000570  f1 22 4e 6f 22 20 8b 20  f1 22 59 65 73 22 0d 01  |."No" . ."Yes"..|
00000580  fe 3e f1 27 27 22 20 86  4c 65 66 74 20 6d 61 72  |.>.''" .Left mar|
00000590  67 69 6e 3a 81 22 3b 3a  e7 6c 6d 24 3d 22 22 20  |gin:.";:.lm$="" |
000005a0  f1 22 4e 6f 6e 65 22 20  8b 20 f1 3b a9 28 6c 6d  |."None" . .;.(lm|
000005b0  24 29 3b 22 20 73 70 61  63 65 73 22 0d 02 08 2e  |$);" spaces"....|
000005c0  f1 27 27 22 20 83 53 50  41 43 45 86 74 6f 20 63  |.''" .SPACE.to c|
000005d0  6f 6e 74 69 6e 75 65 2c  20 6f 72 83 54 41 42 86  |ontinue, or.TAB.|
000005e0  74 6f 20 72 65 2d 72 75  6e 22 0d 02 12 14 f5 3a  |to re-run".....:|
000005f0  57 3d a5 3a fd 57 3d 33  32 20 84 57 3d 39 0d 02  |W=.:.W=32 .W=9..|
00000600  1c 05 e1 0d 02 26 0c dd  f2 6c 66 28 6e 6f 29 0d  |.....&...lf(no).|
00000610  02 30 12 e7 8f 23 51 3d  a2 23 51 20 e5 8d 44 44  |.0...#Q=.#Q ..DD|
00000620  42 0d 02 3a 1f 46 25 3d  9a 23 51 3a e7 20 46 25  |B..:.F%=.#Q:. F%|
00000630  3c 3e 6e 6f 3a cf 23 51  3d 28 8f 23 51 29 2d 31  |<>no:.#Q=(.#Q)-1|
00000640  0d 02 44 0a ef 31 30 2c  31 33 0d 02 4e 0a f1 3b  |..D..10,13..N..;|
00000650  6c 6d 24 3b 0d 02 58 05  e1 0d 02 62 0c f4 22 81  |lm$;..X....b..".|
00000660  45 52 52 4f 52 0d 02 6c  07 ee 85 87 0d 02 76 07  |ERROR..l......v.|
00000670  d9 23 30 0d 02 80 09 ef  33 3a eb 37 0d 02 8a 0c  |.#0.....3:.7....|
00000680  f2 68 65 61 64 69 6e 67  0d 02 94 2b f1 27 22 81  |.heading...+.'".|
00000690  20 45 72 72 6f 72 83 22  3b 9f 3b 22 81 64 65 74  | Error.";.;".det|
000006a0  65 63 74 65 64 20 61 74  20 6c 69 6e 65 83 22 3b  |ected at line.";|
000006b0  9e 27 27 0d 02 9e 05 e0  0d 02 a8 0a dd f2 68 61  |.''...........ha|
000006c0  73 68 0d 02 b2 12 e3 58  25 3d 31 b8 bb 28 68 61  |sh.....X%=1..(ha|
000006d0  73 68 24 29 0d 02 bc 1d  63 6f 64 65 25 3d bb 28  |sh$)....code%=.(|
000006e0  c1 68 61 73 68 24 2c 58  25 2a 33 2b 31 2c 32 29  |.hash$,X%*3+1,2)|
000006f0  29 0d 02 c6 0e ef 32 2c  31 2c 63 6f 64 65 25 0d  |).....2,1,code%.|
00000700  02 d0 05 ed 0d 02 da 0d  ef 33 2c 97 22 23 22 2c  |.........3,."#",|
00000710  32 0d 02 e4 05 e1 0d 02  ee 08 dd a4 73 70 0d 02  |2...........sp..|
00000720  f8 1d f1 22 20 20 20 83  48 6f 77 20 6d 61 6e 79  |..."   .How many|
00000730  20 73 70 61 63 65 73 3f  82 22 3b 0d 03 02 2b e8  | spaces?.";...+.|
00000740  22 22 41 25 3a e7 41 25  3c 30 20 84 20 41 25 3e  |""A%:.A%<0 . A%>|
00000750  34 30 20 f1 22 20 20 20  86 53 69 6c 6c 79 21 22  |40 ."   .Silly!"|
00000760  3a e5 8d 64 78 42 0d 03  0c 0d 3d c4 41 25 2c 22  |:..dxB....=.A%,"|
00000770  20 22 29 0d ff                                    | ")..|
00000775
07_10_87/TEXTRD.m0
07_10_87/TEXTRD.m1
07_10_87/TEXTRD.m2
07_10_87/TEXTRD.m4
07_10_87/TEXTRD.m5