BANNER For The TS 2068
This is a short program to print long banners featuring large characters on the 2040 printer. Unlike some other banner programs, you do not have to type DATA statements that contain each character’s dot makeup. This program looks directly into the ROM for the dot patterns. The 2068 stores each scan line of dots as a single decimal number. This is unlike the TS 1000 which its dot patterns as binary 1’s and 0’s. In the 2068 ROM they start at address 15359. This program works with all characters except inverse and user defined and regular graphics.
1 DIM B$(8,8)
2 PAPER 0: BORDER 0: INK 7: CLS
3 PRINT AT 10,4;"Banner by Chris Raynak"
4 PAUSE 300
5 PAPER 1: BORDER 1: CLS
6 PRINT "When entering your messages you must remember that you are limi-ted to 32 characters."
7 PRINT '"Also, you cannot use user def. graphics or regular graphics for banners."'"Please select one of the letter sizes from below."
8 PAPER 2: PRINT " ": PAPER 1
9 PRINT '"1) 8x8"'"2) 16x16"'"3) 32x32": INPUT "Your selection?";S: CLS
10 PRINT "Please enter your message."
11 INPUT C$: IF LEN C$>32 THEN LET C$=C$(1 TO 32)
12 PAPER 3: PRINT AT 8,0;"Your message is being processed.": PAPER 1
13 FOR Z=1 TO LEN C$: PRINT AT 10,Z-1;C$(Z): LET L=15359+(CODE C$(Z)*8)
14 REM ^Finds address of first scan line.
15 REM ************************
16 REM Converts decimal #
17 REM of the scan line of
18 REM coresponding character
19 REM in the ROM to binary.
20 REM ************************
200 FOR X=1 TO 8
210 LET L=L+1: LET D=PEEK L
360 FOR A=1 TO 8
370 LET B$(X,9-A)=CHR$ (CODE "0"+D-2*INT (D/2))
380 LET D=INT (D/2)
390 NEXT A
400 NEXT X
451 LET A$=""
452 REM ************************ Rotates leter 90 degrees to the right. ************************
460 FOR X=1 TO 8
470 FOR Y=8 TO 1 STEP -1
480 IF B$(Y,X)="1" THEN GO TO 486
481 IF S=1 THEN LET A$=A$+" "
482 IF S=2 THEN LET A$=A$+" "
483 IF S=3 THEN LET A$=A$+" "
484 GO TO 490
486 IF S=1 THEN LET A$=A$+"▒"
487 IF S=2 THEN LET A$=A$+"▒▒"
488 IF S=3 THEN LET A$=A$+"▒▒▒▒"
490 NEXT Y
491 FLASH 1: INK 0: PAPER 7: PRINT AT 12,3;"**PRINTER IN OPERATION**": FLASH 0
492 IF S=1 THEN LPRINT A$
493 IF S=2 THEN LPRINT A$'A$
500 IF S=3 THEN LPRINT A$'A$'A$'A$
501 INK 7: PAPER 1: PRINT AT 12,3;" "
502 LET A$=""
510 NEXT X
520 NEXT Z
530 PRINT AT 13,0;"Would you like to print another message?": INPUT A$: IF A$(1)="N" OR A$(1)="n" THEN GO TO 1000
540 INPUT "Same letter size?";A$: IF A$(1)="N" OR A$(1)="n" THEN CLS : GO TO 8
550 CLS : GO TO 10
1000 REM ***********************
1010 REM Memory used=2040 bytes*
1020 REM ***********************
BANNER 1000
By John Marion
The purpose of this program is to print out banners on your Timex printer using your ZX81 or T/S 1000. After typing in and running, you will be instructed to “ENTER YOUR MESSAGE TO PRINT”. Now enter your message and press return. Next you will be asked to choose a “bit character”. This is the character which makes up the letters on your banner. After entering your choice of bit, your banner will begin to print out. Choice 3 will use the same letter for a bit as the letter it is currently printing. After your banner is finished, the program will run again.
100 REM BANNER 1000
110 CLS
120 PRINT AT 4,7;"***BANNER 1000***"
130 PRINT AT 10,2;"ENTER YOUR MESSAGE TO PRINT"
140 INPUT A$
150 IF A$="" THEN GOTO 140
160 DIM B$(32)
170 DIM X(8,8)
200 REM CHOOSE BIT
210 CLS
215 PRINT AT 4,7;"***BANNER 1000***"
220 PRINT AT 8,6;"CHOOSE BIT CHARCTER"
230 PRINT AT 10,6;"(1) ""\::"""
240 PRINT AT 12,6;"(2) ""\!:"""
250 PRINT AT 14,6;"(3) SAME AS LETTER"
260 INPUT A
270 IF A<1 OR A>3 THEN GOTO 260
300 REM PRINT BANNER
310 CLS
360 FOR D=1 TO LEN A$
370 IF CODE A$(D)>128 THEN LET A$(D)=" "
380 FOR Y=1 TO 8
390 LET X(Y,1)=PEEK (Y-1+7680+(8*CODE A$(D)))
400 NEXT Y
410 FOR Y=1 TO 8
420 LET E=X(Y,1)
430 LET X(Y,8)=(E>=128)
440 IF E>=128 THEN LET E=E-128
450 LET X(Y,7)=(E>=64)
460 IF E>=64 THEN LET E=E-64
470 LET X(Y,6)=(E>=32)
480 IF E>=32 THEN LET E=E-32
490 LET X(Y,5)=(E>=16)
500 IF E>=16 THEN LET E=E-16
510 LET X(Y,4)=(E>=8)
520 IF E>=8 THEN LET E=E-8
530 LET X(Y,3)=(E>=4)
540 IF E>=4 THEN LET E=E-4
550 LET X(Y,2)=(E>=2)
560 IF E>=2 THEN LET E=E-2
570 LET X(Y,1)=(E>=1)
580 NEXT Y
600 FOR F=24 TO 1 STEP -1
610 FOR I=8 TO 1 STEP -1
615 IF X(I,F/3)=0 THEN LET E$=" "
620 IF X(I,F/3)=1 THEN LET E$=("\::" AND A=1)+("\!:" AND A=2)+(A$(D) AND A=3)
630 LPRINT E$;E$;E$;E$;
640 NEXT I
650 LPRINT
655 IF F<3 THEN GOTO 665
660 NEXT F
665 IF D<1 THEN GOTO 680
670 NEXT D
680 RUN
More One-Liners for the 2068
The “2068 Spirograph” routine drew a good bit of response including a letter from Robert Hartung, former writer for SYNC magazine. He informs us that the routine is a variation of one which is at the top of page 472 of Morse, Adamson, Anrep, and Hancock’s Essential Guide To T/S Home Computers. Another variation is this one Robert made up for SYNC the month Ziff Davis pulled the plug.
1 LET p=INT (RND*8): LET i=INT (RND*8): IF p=i THEN RUN
2 CLS : PLOT 65,27: ON ERR GO TO 2: INK 1: PAPER p: BORDER INT (RND*8): BRIGHT INT (RND*2): DRAW OVER 1;120,120,INT (RND*300)*PI: PAUSE 60: IF INKEY$="0" THEN ON ERR RESET : STOP
3 RUN
4 SAVE "draw" LINE 1
5 REM - Keying "0"during the PAUSE 60 of line 2 permits stop-ping the routine. Otherwise the ON ERR instruction will ignore "STOP" and "BREAK".
The following short programs were borrowed from the Sinclair Timex User Groups Newsletter of the Boston Computer Society (Volume 3, issue 4). As you can see some pretty neat effects can be achieved using only one program line with the 2068.
10 INPUT "type a number, 0 to 50 ";x: INPUT "how many repeats? ";y: FOR n=1 TO y: PLOT 65,27: DRAW OVER 1;120,120,(x*10+3)*3*PI: NEXT n

10 FOR x=0 TO 65 STEP .1: PLOT 2*x*SIN x+125,x*COS x+88: NEXT x

10 FOR x=0 TO 254: PLOT x,40*SIN (x/10)+88: DRAW 10,10: DRAW -10,5: NEXT x

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.