Prints a piece of wisdom from Charles F. Kettering, the General Motors inventor, from character codes: My interest is in the future because I’m going to spend the rest of my life there, and then THE CHOICE IS YOURS.
Two programs that print the same text. The TS2068 form keeps the codes in DATA lines and READs them in three loops (each loop count must equal the number of codes in its part). The TS1000 form has no READ and DATA, so it keeps the TS1000 codes in five strings, joins them and splits them at the commas, converting each code with VAL and CHR$; on the TS1000 the text is in capitals, and it needs more than 3K (4K or 16K). The zip has both, as printed.
On the TS1000 the program has no STOP after the loop, so once the text is printed it falls into its own subroutine and stops with report C/205; the text is complete by then.
Published in The Plotter December 1992 (Advice, 2068), with the TS1000 form in the same issue (Advice TS1000).
Source Code
5 REM THIS TS 1000 PROGRAM READS STRINGS TO PRINT OUT A MESSAGE
10 LET A$="50,62,0,46,51,57,42,55,42,56,57,0,46,56,0,46,51,0,57,45,42,0,43,58,57,58,55,42,"
12 LET B$="0,0,0,0,39,42,40,38,58,56,42,0,46,0,38,50,0,44,52,46,51,44,0,57,52,0,56,53,42,51,41,0,57,45,42,"
14 LET C$="0,55,42,56,57,0,52,43,0,50,62,0,49,46,43,42,0,57,45,42,55,42,27,"
16 LET D$="0,0,0,0,0,0,0,0,0,0,0,40,45,38,55,49,42,56,0,43,27,0,48,42,57,57,42,55,46,51,44,"
18 LET E$="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,57,45,42,0,40,45,52,46,40,42,0,46,56,0,62,52,58,55,56,27,"
20 LET A$=A$+B$+C$+D$+E$
120 LET M=1
130 FOR N=1 TO LEN A$
140 IF A$(N)="," THEN GO SUB 200
150 NEXT N
200 LET F$=A$(M TO N-1)
205 LET F=VAL F$
210 PRINT CHR$ F;
220 LET M=N+1
230 RETURNNote: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.

