RUN: EXECUTING INSTRUCTIONS
To make the computer execute your program, you have to type RUN.
The RUN command tells the computer to carry out its instructions.
Type RUN and press to see what happens:
R U N
I H E A R D OF A POET N A M E D SAM
The computer's first and only instruction, line 10, was to print the
words inside the quotation marks. Clear the screen, type RUN again,
and press . The computer follows its instruction again and
prints I HEARD OF A POET NAMED SAM.
Even though the instruction is no longer on the screen, the computer
remembers what to do. Your program is stored in RAM (Random
Access Memory), the programmable section of the computer's
memory. When you type LIST, the computer shows on the screen all
the instructions stored in the RAM portion of its memory. Type LIST.
Your screen should look like this:
LIST
10 PRINT "I H E A R D OF A POET N A M E D SAM"
If your screen looks different, you might have forgotten to press
at the end of each entry or to type LIST on a line by itself.
Type in the line below, then give the RUN command:
20 PRINT "I MET HIM ONE DAY, A N D TO MY DISMAY, "
R U N
The words enclosed in the quotation marks in both lines of the pro-
gram appear on the screen. Type LIST to see the instructions that the
computer has stored in RAM. Both lines 10 and 20 appear.
LINE NUMBERING: CREATING ORDER
Each instruction line in a BASIC program must have a number in front
of it. The numbers are called "line numbers." The computer executes
the instructions, beginning with the smallest number and continuing
through the program until all the instructions have been carried out.
The usual procedure is to number lines by tens so that enough
numbers are available for inserting additional lines later, if desired. Try
inserting a line now. Add line 15 (shown on the next page) and instruct
the computer to run the program. Your screen should look like the
following program:
36
Содержание 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: ......