EasyManua.ls Logo

Sharp MZ-800 - 5.1 Multi-statement Lines and Line Numbers

Sharp MZ-800
221 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...
This
chapter
describes
fundamental
concepts
which
will
allow
you
to
program
the
MZ-800
in
BASIC.
The
information
included
in
this
chapter
is
essential
to
realizing
the
full
potential
of
BASIC.
5.1
Multi-statement
Lines
and
Line
Numbers
As
described
in
Chapter
3,
a
program
consists
of
one
or
more
program
lines.
Although
each
line
of
the
examples
in
Chapter
3
contains
only
one
statement,
a
program
line
can
contain
two
or
more
state-
ments,
providing
each
statement
is
separated
from
each
other
by
a
colon
(:).
A
program
line
which
contains
two
or
more
statements
is
called
a
multi-statement
line.
Example:
10
CLS:PRINT
‘MULTI
=STATEMENT"’:END
Each
program
line
begins
with
a
line
number,
Line
numbers
can
be
any
number
between
|
and
65535.
It
is
not
necessary
to
specify
line
numbers
consecutively,
in
fact,
it
is
advisable
to
assign
line
numbers
in
increments
of
ten
so
that
you
can
insert
additional
lines
during
program
editing.
5-2

Other manuals for Sharp MZ-800

Related product manuals