Sharp MZ-80A Owner's Manual page 21

Hide thumbs Also See for MZ-80A:
Table of Contents

Advertisement

11
When
a line
with the
same
line number as
one
of the old
lines
is
entered,
the old line is replaced
by the
new line.
A
more
convenient method,
called
screen
editing, may be used when only
portions
of a line are
to
be changed,
as
in
this example, where the plus
sign is to be
changed
to
a minus sign. With
screen
editing, all that is
required is to
move
the
cursor
to
the display position where a change is
to
be made using the cursor control keys and
to overwrite
the
characters).
To
terminate the
editing
session,
press the CR
key (The
|
CR key may be pressed with the
cursor
in
any
position,
as long as
it is within
a
line).
To insert or delete characters),
use
the
INSERT/DEL
key.
Run the program
after modifying
it.
0
Storing
a program
The programs stored in the
computer main memory
are
lost
when power to the
computer
is turned
off. You
must
learn how to store programs in external files in order
to
execute or complete them
later,
or
exchange them with
friends
who use
the
MZ-SOA.
The cassette tape unit in the
MZ-80A
is an
input/output device which is used
not only
for
starting the
BASIC
interpreter, but
for
recording and reading programs and data.
To record a program
onto cassette tape,
use
the following
procedure:
Load a cassette tape in the unit. When recording at the beginning of the
tape, rewind
it by
pressing
the REW
button
before
proceeding
to
the next step.
Enter
a
SAVE
command together with
an
appropriate
program
name.
The
SAVE
command
causes
the program in the computer to be saved
on
the cassette
tape.
Now,
let's record the above program (changed to a subtraction program through screen editing) on cassette tape.
Name the program "Subtraction." After
mounting
a
cassette tape on the MZ-80A, key in:
SAVE
"Subtraction"
CR
Then,
RECORD
.
PLAY
will appear on the
screen. Press
the
RECORD
and
PLAY
keys
simultaneously,
and
Writing
"Subtraction"
will appear on the screen, indicating that the
save
operation
is in progress.
The prompt "Ready" will again
appear on the
screen
when the program has been saved.
\J\
Reading
a program from cassette tape
The
LOAD
command is used to read programs from cassette
tape.
To
read the
program "Subtraction,"
key in:
LOAD
"Subtraction"
:
C R.
Figure 1.9
shows
that,
after
the BASIC interpreter has been
started,
the program Subtraction
has been
read
into
the computer
from the
cassette tape by a
LOAD
command.
It also shows
the messages
Found
and Loading, which
are
dis¬
played
in
the
course of program
reading
to
indicate that the
requested File has been found and that
it is
being
read.
It
MONITOR
SA-1510
•«
(L
* PLAY
Loading
BAS
1C
.SA-55
10
BASIC
interpreter
SA-55
10
Copyright
1981
by
SHARP
Corp,
32492
Bytes
Ready
LOAD
"Subtraction"
PLAY
-
Found
"Subtraction"
Loading
"Subtraction"
Ready
3
Figure 1
.9
Loading a
program

Advertisement

Table of Contents
loading

Table of Contents