The comma acts like a tab. Each time the computer moves down to
the next line and prints CONGRATULATIONS!, it moves to the next tab
position. The result is a barber-pole effect. Remember to break the
loop with the key.
Semicolon: Computer Glue
A semicolon produces another kind of effect. List the program, change
the comma in line 110 to a semicolon, press , and run the
program:
LIST
110 PRINT " C O N G R A T U L A T I O N S ! ";
120 GOTO 110
R U N
The semicolon glues the PRINT statements together with no space in
between. To put some space between the words, go back and edit line
110 so that it looks like this:
110 PRINT"CONGRATULATIONS! ";
RUN
Colon: A Separator
The colon is a separator. It permits two instructions to be placed on
one line. Change the semicolon in line 110 to a colon and add the
PRINT statement below:
110 PRINT "CONGRATULATIONS!" : PRINT "YOU JUST WON THE
LOTTERY."
R U N
As you progress in your programming ability, conserving space in the
computer's memory becomes important. Consolidating commands on
one line with a colon is one way to help save free bytes of RAM
memory. To see how much memory is conserved, type the following
statement:
PRINT FRE (0)
The computer will answer with a number. Reprogram line 110 so that
the two PRINT statements take up two program lines:
110 PRINT "CONGRATULATIONS!"
115 PRINT "YOU JUST WON THE LOTTERY. "
PRINT FRE (0)
42
Содержание 65XE
Страница 1: ...ATARI 65XE PERSONAL COMPUTER OWNER S MANUAL TM...
Страница 3: ...ATARI 65XE PERSONAL COMPUTER TM...
Страница 6: ...Part 1 GettingStarted 1...
Страница 9: ...4...
Страница 23: ...18...
Страница 25: ...20...
Страница 32: ...Part 2 Programming withATARI BASIC 27...
Страница 33: ...28...
Страница 59: ...54...
Страница 69: ...64...
Страница 82: ...Part3 Appendices 77...
Страница 83: ...78...
Страница 97: ...92...
Страница 105: ...100...
Страница 125: ...120...
Страница 126: ...121 Index...
Страница 127: ...122...
Страница 134: ...ATARI 1987 Atari Corp All Rights Reserved Printed in Taiwan C072018 001 REV B K l 2 1987...
Страница 135: ......