EasyManua.ls Logo

Sharp MZ-800 - Page 29

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...
(4)
Adding
a
line
A
new
line
can
be
added
to
any
portion
of
the
program.
For
instance,
if
we
want
to
insert
a
line
be-
tween
line
10
and
line
20,
move
the
cursor
to
the
beginning
of
the
new
line
below
line
40.
Type
‘15
REM
Editing
sample
|CR|’’.
10
CLS
20
PRINT
‘‘SAMPLE
PROGRAM”
30
PRINT
‘‘MZ-800”
40
END
15
REM
Editing
sample
You
may
have
noticed
that
until
we
added
line
15,
all
the
line
numbers
have
been
in
increments
of
10.
There
is
no
real
technical
reason
for
doing
this
other
than
the
fact
that
increments
of
10
leave
space
for
extra
lines
to
be
inserted
if
you
want
to
change
the
program
later
on,
and
increments
of
10
are
easy
to
remember.
With
this
in
mind,
line
number
15
could
have
just
as
easily
been
any
other
number
between
11
and
19
inclusive,
but
‘‘15’’
is
convenient
since
it
still
allows
even
further
lines
to
be
added
if
later
program
changes
are
made.
Enter
the
CLS
command,
then
enter
the
LIST
command
to
confirm
that
the
new
line
is
now
inserted
between
lines
10
and
20.
LIST
10
CLS
15
REM
Editing
sample
20
PRINT
‘‘SAMPLE
PROGRAM”
30
PRINT
‘’MZ-800"
40
END
(5)
Deleting
lines
Any
program
line
can
be
deleted
by
using
the
DELETE
command.
To
delete
lines
15
and
20,
type:
DELETE
15-20[CR]
Enter
the
LIST
command.
The
program
listing
should
appear
as
follows:
10
CLS
30
PRINT
‘‘MZ-800’"
40
END
Typing
a
line
number
and
pressing
the
key
also
deletes
the
line.
(6)
Renumbering
Enter
the
RENUM
command
to
return
all
the
line
numbers
to
increments
of
10.
(RENUM
can
also
be
specified
to
increment
the
line
numbers
by
any
other
value.)
RENUM
LIST
10
CLS
20
PRINT
‘‘MZ-800""
30
END

Other manuals for Sharp MZ-800

Related product manuals