EasyManua.ls Logo

Commodore CBM - Load

Commodore CBM
447 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
LIST -140
LIST 20000-
Examples:
LIST
LIST 50
LIST 60-100
If the program
is
longer than 23 lines. a simple LIST
will
scroll the beginning
of the program up off the display screen. Use line
limiting
parameters
in
this case
to retain the desired program lines on the screen. In addition to LIST. the entire
program
is
also listed in response to LIST or LISTa.
If the
PET
is
hooked up to a hard copy
output
device. such
as
a line printer or
teletype. LIST can
be
used
to
obtain printed copies of the current program
(see
CMD statement).
List entire program.
List line 50.
List ail lines
in
the program between lines 60
and 100. beginning
with
line 60 and ending
with
line 100.
List ail lines
in
the program from the beginning
of the program through line 140.
List ail lines in the program from ine 20000 to
the end of the program.
The format of the listed line
is
virtually the same
as
that
in
which
the line
was entered.
PET
BASIC does
just
the
following
reformatting:
1.
?'S entered
as
a shorthand for
PRINT
are expanded to the
word
PRINT.
Example: ? A becomes PRINT
A.
2.
Blanks ahead of the line number are eliminated.
For example: 50
A=1
becomes 50
A=1
100
A=A+1
100
A=A+1
3.
A space
is
inserted between the line
number
and the rest of the state-
ment
if none was entered.
For example:
55A=B-2
becomes 55
A=B-2.
4.
The line
is
printed beginning at column 2 instead of column
1.
LIST
is
always given in immediate mode. If vou
put
a LIST command in your
program. it lists the program
but
then exits to
PET
BASIC.
Attempting
to continue
program execution via
CO
NT simply repeats the LIST indefinitely.
LOAD
The LOAD command loads a program from the tape cassette unit. or from
another device if specified,
into
memory.
174

Table of Contents

Other manuals for Commodore CBM

Related product manuals