Atari 65XE Owner's Manual page 42

Hide thumbs Also See for 65XE:
Table of Contents

Advertisement

15 PRINT "WHOSE POEMS WERE THE TALK OF THE LAND. "
RUN
I HEARD OF A POET N A M E D 5AM
WHOSE POEMS WERE THE TALK OF THE L A N D .
I MET HIM ONE DAY, AND TO MY DISMAY,
The computer automatically inserted line 15 between lines 10 and 20.
Write another line:
30 PRINT "HIS BRAINS WERE SILICON-SAND. "
R U N
LIST
The RUN and LIST commands cause all four lines of PRINT instruc-
tions to appear on the screen.
ERROR MESSAGE: COMPUTER TALK FOR
"I DON'T UNDERSTAND"
PRINT simply tells the computer to print whatever is inside quotation
marks on the screen. The computer doesn't care what words or symbols
are inside the quotation marks; the words don't need to be spelled cor-
rectly or make sense. Try out the instructions below:
40 PRINT " A Y E SAY HYE.: U SAY BI. "
RUN
Even when the quotation marks enclose a nonsense sentence containing
misspelled words, the computer does what it is told to do. However,
try misspelling PRINT as shown below and see what happens:
50 PRIMT "I SAY HI; YOU SAY BYE. "
The computer sends you an Error message. The computer checks up
on only those instructions that are outside the quotation marks
because those instructions are intended for the computer. Instructions
that are inside the quotation marks are intended for you, so the com-
puter copies them exactly. Move to a blank line but do not clear the
screen. Run the program to see what happens.
Error message 17 appears at line 50, the line in which you intentionally
misspelled PRINT. Error message 17 is called the "syntax error." It
indicates that the instructions were undecipherable to the computer.
(For a complete listing of Error messages, see Appendix D.)
There are several ways to correct an Error message. The easiest solu-
tion is to move the cursor to the line that contains the typing error.
Place the cursor on the offending M in PRIMT and change it to N.
37

Advertisement

Table of Contents
loading

Table of Contents