Chapter
10
I
BASIC
Keywords
LIST
Statement
LIST
startline-endline [,deuicel
Lists
a
program in memory
to
the display.
Startline
specifies the first line
to
be listed. If you omit
startline,
BASIC starts with the first line in your program.
Endline
specifies the last line
to
be listed.
If
you omit
endline,
BASIC ends with the last line in your program.
If you omit both
startline
and
endline,
BASIC lists the entire
program.
Device
may be either SCRN: (screen)
or
LPT1: (line printer
1).
If
you omit
deuice,
the lines are listed
to
the screen.
You can temporarily stop the listing by pressing
[HOLD1.
Press
[HOLDJ
again
to
continue the listing.
You can substitute a period
(.)
for
either
startline
or
endline
to
indicate the current line number.
Examples
LIST
displays the entire program.
LIST
50-85,
"'sCRN:"
displays lines in the range
50
to
85
on the screen.
LIST
.-
displays the program line that you have entered or edited and all
higher numbered lines on the screen.
LIST
-227
displays all lines up
to
and including
227
on the screen.
LIST
227-
,"LPTl
:"
lists Line
227
and all higher numbered lines
to
the printer.
204