Download Print this page

Commodore 64 User Manual page 59

Hide thumbs Also See for COMMODORE 64:

Advertisement

STOP is your first line of defense on your
V\C or 64. Your program is halted until you
tell the computer to do something else. If you
want it to start running again, you would type
the continue command, CONT, and press
RETURN (do not do this now}. The program
should normally start up again until you either
press the STOP key or turn off the computer.
You can write your own program and stop it.
First, turn your VIC or 64 OFF and then ON
again to clear its memory. Now type in the
following program and be sure to press
RETURN after each line:
10 PRINT "WHERE'S THE BRAKE?"
20 GOTO 10
Your program now appears on the screen.
SCREEN 1
Then type the word RUN and press the
RETURN key. Uh-ohl The message keeps
appearing on the screen and won't stopl
SCREEN 2
Now is the time to press the STOP key by
itself. This will halt the following program and
display the message BREAK IN 10.
The message says BREAK IN 10 because the
command in line 10 was the one being
executed when you stopped the program.
SCREEN 3
Remember, the STOP key is most useful if you
have given your computer an instruction, such
as to LOAD a program, or if you are in the
middle of running a program that you bought
or wrote and don't want to continue. This key
is especially important if you have typed in
something that contains a mistake, and you
lose your cursor while nothing appears to be
happening. Your computer has taken off into
parts unknown—long enough that computer
programmers say your VIC or 64 has gone out
to lunch. Whenever this happens, press the
STOP key and hope that you will get your
blinking cursor to come back to your screen. If
it doesn't, then you need to combine the
RUN/STOP key with another most important
key, the RESTORE key.
Do not clear the screen and do not turn off
the computer before going on to the next
exercise.
J3^S3
BVTES
READV.
\±§
PRINT
■■
BRl if-
E ■■ "
GOTO
10
FREE
WHERE
THE
'
■:■
SCREEN 1
The GOTO statement In this program tells
the computer to return to Line 10.
PPere
WHERE
WHERE
WHERE
WHERE
WHERE
WHERE
WHERE
WHERE
THE
THE
THE
THE
THE
THE
THE
THE
THE
THE
THE
THE
THE
THE
THE
THE
THE
THE
THE
the:
THE
THE
TH
BkfiKE'
BPmKE?
BRflKE?
BRAKE?
BRAKE"?
BRAKE?
B I-: r-i K E ?
I:PmKE?
FS R fiKE'
BRAKE'?
ERfiKE?
BRAKE?
BRAKE?
BRAKE?
BR^KE?
BRAKE?
BRAKE?
- E-".
-■
SCREEN 2
When you type the word RUN and press
RETURN, the computer prints your message.
i-j h E R E
WHERE
WHERE
t-lHERE
WHERE
WHERE
WHERE
WHERE
WHERE
W H ERE
HHERg
[HI
i-:l
ERE
Q iERl
iERl
WHERE
WHERE
BREAK
IN
REnDV.
THE
THE
THE
r h e
THE
THE
THE
THE
THE
THE
THE
THE
THE
THE
t H E
THE
THE
THE
THE
18
BRAKE ~J
BRAKES
BRflKE?
BRftKE?
BRAKE?
BRAKE?
BRAKE?
BRAKE?
1? R AKE?
E R A K E "^
■ -!- AK E -■■
BRAKE?
BRAKE"?
iKE?
■ iKEJ
BRAKE?
BRAKE"?
BPiiKE'
SCREEN 3
When you press RUN/STOP, the computer
stops running your program and displays a
message.
57

Advertisement

loading

Related Products for Commodore COMMODORE 64

This manual is also suitable for:

Vic 20