GOSUB Qno
330 Nl 61 N2 0 JN3- 0 JGOSUB 3000 COLOSOUN, copyright 1981, Atari, Inc. This program is one of several in a collection from the Graphics Sound Demonstration disk APX-20028 , available from the Atari Program Exchange, P.O. Box 427, Sunnyvale, Ca. 94086. Interesting information on color and sound cffects is also provided in the manual for this disk. This program is reprinted here with permission of Atari, Inc. 3060 FOR W l TO 25 5 NEXT W J RETURN
Hhhbibhbbhi Iddbdddoboo Bbobbbbbbb Ibbbbdodbbb
CTRL key and at the same time press the - key. The cursor will move to the right. Now press CTRL and t . The cursor will move up. After experimenting for a while with the four arrows and the CTRL key, bring the cursor to the second 1 in 11 of your program Now all you have to do is type a 0 and press RETURN and your program will be corrected to read 10 PRINT ANOTHER ERROR 20 GOTO 10 Clear the screen by pressing SHIFT CLEAR and then LIST and RUN the program. You will find the error eliminated....
Next J Next I
16 RETURN error. This means that the program reached a RETURN statement by accident i.e., there was no GOSUB which resulted in the program's reaching this statement . The most common reason for this error is that a program reached the subroutines when it should have already stopped or ended. Here's an example 20 PRINT WOULD YOU PLAY AGAIN 30 INPUT A 40 IF A Y THEN GOSUB 100 50 PRINT THANKS ANYWAY. 100 PRINT O.K., HERE WE GO AGAIN 110 RETURN What will happen here is that the program will do a...
Getting More Complex
At this point, we would like to show you some really complex ways to dress up your programs. However, in order to do this we need some special notation that deals with the complex features of your ATARI 400 or ATARI 800 Home Computers, such as inverse video letters letters which appear as dark on a white background instead of the usual white on dark graphic symbols and control characters that allow you to print anywhere on the screen up, down, left, and right . The Code Works , publishers of...
