Robert L. Howard
[address omitted]
CATS
PO Box 725
Bladensburg, MD 20710
Dear Mark:
I am enclosing a program that is neat for selecting or testing a TV or monitor with the 2068.
It was adapted from a Spectrum program so in theory tests 1-6 work also on a Spectrum ROM; however, test 7 for resolution makes use of the routine published in CATS for May ’86 by H. Weppler to get the 64 column mode to display a screenful of “m”s as a resolution test. This means that it would probably hang up on a Spectrum unless lines 0-19 and all user calls were deleted.
This program was first submitted to QZX, The Ham Radio Journal but I am sending a copy to CATS to show how I used Ceppler’s routine to get 64 columns.
Ed: If this is reprinted, please give credit to QZX as well.
1 CLEAR 63199
2 FOR I=63200 TO 63245
3 READ A
4 POKE I,A
5 NEXT I
6 DATA 62,128,24,1,175,245,62,128,211,255,62,1,211,244,241,205,142,14,50,194,92,175,211,244,167,33,0,64,17,0,96,1,0,27,48,1,235,58,194,92,254,0,200,237,176,201
7 CLS : FOR N=0 TO 703: PRINT "m";: NEXT n
8 RANDOMIZE USR 63200
9 RANDOMIZE USR 63244
10 CLS
20 REM FOR SINCLAIR SPECTRUM
30 REM BY NICK FOOT G8MCQ
40 PAPER 0: BORDER 0: INK 7: CLS
50 PRINT "1) RED RASTER"
60 PRINT "2) GREEN RASTER"
70 PRINT "3) BLUE RASTER"
75 PRINT "4) WHITE RASTER"
80 PRINT "5) CROSS HATCH"
90 PRINT "6) COLOUR BARS"
95 PRINT "7) RESOLUTION"
97 PRINT " & 64 COLUMN RESOLUTION"
100 PRINT
110 PRINT
120 PRINT "INPUT NUMBER OF TEST ROUTINE"
122 PRINT ''"Adapted from TV Test program by"'"Nick Foot G8MCQ in Dec '82"'"Supplement to Practical Wireless"'"TS2068 Version by WA6DLI"'"Hi Res from H.Weppler CATS 5/86"''"HIT ANY KEY TO RETURN TO MENU"
130 IF INKEY$="" THEN GO TO 130
135 REM ED NOTE; A calculated GO TO here would save seven lines of code, but the subroutines would have to be evenly spaced.
140 IF INKEY$="1" THEN GO TO 200
150 IF INKEY$="2" THEN GO TO 250
155 IF INKEY$="3" THEN GO TO 300
160 IF INKEY$="4" THEN GO TO 330
170 IF INKEY$="5" THEN GO TO 350
185 IF INKEY$="6" THEN GO TO 500
188 IF INKEY$="7" THEN GO TO 600
190 GO TO 130
200 REM RED RASTER
210 BORDER 2: PAPER 2: CLS : PAPER 0: GO TO 40
250 REM GREEN RASTER
260 BORDER 4: PAPER 4: CLS : PAPER 0: GO TO 40
300 REM BLUE RASTER
310 BORDER 1: PAPER 1: CLS : PAPER 0: GO TO 40
330 REM WHITE RASTER
340 BORDER 7: PAPER 7: CLS : PAPER 0: GO TO 40
350 REM CROSS HATCH
355 CLS
360 FOR N=8 TO 176 STEP 20
370 PLOT 8,N
380 DRAW 240,0
390 NEXT N
400 FOR N=8 TO 255 STEP 20
410 PLOT N,8
420 DRAW 0,160
430 NEXT N
440 CIRCLE 256/2,176/2,75
450 PAUSE 0: GO TO 40
505 CLS
520 FOR I=0 TO 21
530 FOR N=1 TO 7
540 PRINT INK N;"????";
550 NEXT N
555 PRINT
560 NEXT I
570 PAUSE 0: GO TO 40
600 REM RESOLUTION TEST
605 CLS
610 FOR N=0 TO 703
620 PRINT "m";
630 NEXT n
635 PAUSE 200: INK 0: PAPER 7: BORDER 7: CLS
636 FOR n=0 TO 703
637 PRINT "m";
638 NEXT n
640 PAUSE 200: GO TO 700
700 OUT 255,6: PAUSE 0: OUT 255,128
702 RANDOMIZE USR 63204: GO TO 705
705 PAUSE 200: CLS : RUN
1000 REM This program by Bob Howard, WA6DLI is useful if you wish to evaluate a monitor or TV for use with your 2068
1010 REM Because it has a routine to print "m" on the screen in both 32 and 64 column modes you can see how good (or bad) your TV or monitor will be.
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.