EasyManua.ls Logo

Atari 400

Atari 400
326 pages
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...
Atari BASIC Reference
Guide
135
EXAMPLE
10
DIM
A$(10)
20
FOR A = 1
TO
100
30
PRINT A$, A 1\ 2
40
IF
A 1\
2>500
THEN END
50
NEXT
A
LIST
"D
:PROGR.BAS", 5,
45
In the previous example, the
LIST
statement saves lines
10
through
40
on
the disk. The line
numbers
that are specified
(5
and
45)
do
not
exist in the program,
so
the section
of
the
program
with
line
numbers
between
those values
is
saved.
The device
code
"0:
can be used
only
if
one
disk
is
in
use
. If
more
than
one
disk
is
available, the
number
of
the disk must also be
specified.
The
LIST
statement can also be used
to
display a
program
on
the
monitor.
The
LIST
command
displays the
entire
program
on
the
screen
unless the
LIST
statement
is
followed
by line
numbers
.
If
one
line
number
follows
the
LIST
statement, the
line
of
the
program
with
that line
number
is
displayed. If
the
program
does
not
have a
line
with
the line
number
specified in the
LIST
statement,
the
LIST
statement
has
no
results.
EXAMPLE
LIST
20
20
FOR A = 1
TO
100
READY
If
two
line
numbers
are specified, those
two
lines are displayed
along
with
all the
code
between
those
line
numbers
. If
either
or
both
of
the specified
line
numbers
do
not
appear in
the
program
, the section
of
the
program
between
those line
numbers
is
displayed.
The
LIST
statement can also be used
with
a
printer.
The statement

Other manuals for Atari 400

Related product manuals