Commodore PET User Manual page 129

Table of Contents

Advertisement

Load the next program found into memory. If vou
start a LOAD when the cassette is in the middle of a
program. the PET will read pa st the remainder of the
current program, then load the next program.
Search for the program named EGOR on the tape
cassette. and load it into memory.
Search for the program named WHEE!LS on the tape
cassette. and load it into memory.
Where a program named X is not on the tape. this
command will produce a list of ail the programs on
the tape in the form:
FOUND program 1
FOUND program 2
etc.
LOAD "EGOR"
N$="WHEE!LS"
LOAD N$
LOAD "X"
After the first program has been loaded fram a tape. vou can for conven-
ience leave the PLAY key depressed if vou will be loading again from the tape.
However. do not leave the PLAY key depressed if vou will subsequently be saving
a program. PET can sense that a tape control key is depressed. but it cannat dis-
tinguish between them. A common error is ta LOAD, then subsequently attempt
ta SAVE, with only the PLA Y key depressed.
Examples:
LOAD
Sometimes vou may have trouble loading a program from tape into memory.
Often the PET will find the program name but does not load the pragram correctly
or does not load it at ail. If this happens. the only thing vou can do is to try ta load
the pragram again. Rewind the tape and reload (several times if necessary). If this
does not work. there may have been a problem when saving the program (SAVE
command) or in the cassette unit itself.
LOAD
in
Program Mode
When the LOAD command is executed in program mode. any listing of
LOAD messages is suppressed unless the tape PLAY key is up (off). When the
PLAY key is off. the following message is shawn so that the load can proceed:
PRESS PLAY ON TAPE #1
OK '
when PLA Y is depressed
LOAD in program mode can be used ta build program overlays. A LOAD
command executed from a program causes that pragram's execution ta stop and
another program to be loaded. overlaying the program currently in memory that
issued the LOAD request. In this case the PET does not perform a CLA. thereby
allowing the first program ta pass on ail of its variable values ta the program being
loaded. The overlay program, and ail subsequent overlay programs, cannat be
larger than the first program in the overlay series.
116

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cbm

Table of Contents