Window on GTIA (GTIAWIND.BAS)

Window on GTIA by David Sanders

Description

Window on GTIA by David Sanders

From the Antic disk of April 1983 (Vol. 2 No. 1).

From the Antic Software Archive at atarimagazines.com. The program remains the property of its author and publisher.

What is in this file

Atari BASIC program · 1.3 KB

Dialect
Atari BASIC
Lines
24
Variables
I, A, M, C, J, B
BASIC listing (24 lines)
10 POKE 54286,64:GRAPHICS 8
20 POKE PEEK(560)+256*PEEK(561)+166,143
30 FOR I=1768 TO 1791:READ A:POKE I,A:NEXT I
40 POKE 512,232:POKE 513,6
50 POKE 54286,192:POKE 87,9:M=1
60 POKE 704,0:POKE 705,26:POKE 706,54:POKE 707,84
70 POKE 708,104:POKE 709,130:POKE 710,184:POKE 711,218
80 POKE 712,6+122*(M=1)+6*(M=2):POKE 623,64*M:C=0
90 COLOR (8+6*(M<>2))*RND(0)+1
100 I=INT(72*RND(0))+4:J=INT(72*RND(0))+4
110 A=INT(144*RND(0))+8:B=INT(144*RND(0))+8
120 PLOT I,A+1:DRAWTO J,A+1:DRAWTO J,B+1:DRAWTO I,B+1
130 PLOT J,B:DRAWTO I,B:DRAWTO I,A:DRAWTO J,A
140 C=C+1:POKE 752,1:PRINT "  MODE=";M+8;"  #";C
150 A=PEEK(53279):IF A=7 THEN 90
160 POKE 77,0:IF A<4 THEN GOSUB 210:M=M+1-3*(M=3):GOTO 80
170 IF A<6 THEN GOSUB 210:C=0:GOTO 90
180 PRINT " **** FREEZE ****":FOR I=1 TO 200:NEXT I
190 IF PEEK(53279)<>6 THEN 190
200 POKE 77,0:FOR I=1 TO 50:NEXT I:GOTO 90
210 PRINT #6;CHR$(125):FOR I=1 TO 200:NEXT I:RETURN
220 DATA 72,141,15,212,141,10,212
230 DATA 173,192,2,69,79,37,78,141,26,208
240 DATA 169,0,141,27,208,104,64