A. Sample Programs
Your ATARI Computer can work miracles with a little help from your
imagination and the right programming techniques. These sample
programs will show off the versatility of your ATARI 65XE and motivate
you to try writing some programs yourself.
Just type in each program exactly as written, pressing at the
end of every line. When you're finished, type the word RUN, press
, and watch your ATARI Computer come to life.
Note: When spacing in program lines is critical, a note at the bottom
of the program will specify the exact number of spaces needed.
THE ATARI CHOO-CHOO
Sound effects are an ATARI specialty. If you close your eyes when you
run ATARI Choo-Choo, you might think you're on the Marrakesh
Express.
10 POKE 765,255:POKE 580,1
20 GRAPHICS 17:POKE 712,148: POSITION 1,10 : PRINT #6;
"THE A T A R I CHOO-CHOO"
30 FOR X=15 TO 0 STEP -1-P:SOUND l,0,0,X
40 R = I N T ( R N D (0)*300)+1
50 IF R=30 THEN S O U N D 3,36,10,10: SOUND 2,48,10,
10:GOSUB 90: S O U N D 3,0,0,0:SOUND 2,0,0,0
60 N E X T X:P=P+0.03
70 IF P>=5 THEN P=5
80 GOTO 30
90 POKE 77,0:POSITION 8,12: PRINT #6; "toot":FOR A=1 TO
400 : NEXT A : POSITION 8,12 : PRINT #6;" " : R E T U R N
Note: Line 90 requires four blank spaces between the quotation
marks.
79
Summary of Contents for 65XE
Page 1: ...ATARI 65XE PERSONAL COMPUTER OWNER S MANUAL TM...
Page 3: ...ATARI 65XE PERSONAL COMPUTER TM...
Page 6: ...Part 1 GettingStarted 1...
Page 9: ...4...
Page 23: ...18...
Page 25: ...20...
Page 32: ...Part 2 Programming withATARI BASIC 27...
Page 33: ...28...
Page 59: ...54...
Page 69: ...64...
Page 82: ...Part3 Appendices 77...
Page 83: ...78...
Page 97: ...92...
Page 105: ...100...
Page 125: ...120...
Page 126: ...121 Index...
Page 127: ...122...
Page 134: ...ATARI 1987 Atari Corp All Rights Reserved Printed in Taiwan C072018 001 REV B K l 2 1987...
Page 135: ......