EasyManua.ls Logo

Sharp MZ-700 - 2.2 An Outline of BASIC

Sharp MZ-700
213 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...
then
type
in
the
following from the keyboard.
SAVE
11
CALCULATION" J
Here, "CALCULATION"
is
the name which
is
to
be recorded on the cassette tape to identify the
program. Any name may be assigned,
but
the name
connot
be longer than 16 characters.
Note:
The
J symbol in the example above represents the I
CR[
key.
When the[ CR[key
is
pressed,"
.!. RECORD. PLAY"
is
displayed
on
the
screen. Pressing the I
RECORD
button
on
the
data recorder
at
this time records the program on cassette tape.
The name which
is
assigned to
the
program
is
referred to
as
its file name. Specification
of
a file name
is
not
absolutely necessary,
but
from the point
of
view
of
file management
it
is a good idea
to
assign one.
Of
course,
the
file name
is
recorded
on
the
tape together with
the
program.
When recording
is
completed, READY is displayed
to
indicate
that
the
computer
is
finished. Now press
the
STOP
button
on
the data recorder and rewind
the
tape.
The program
is
still present in
the
computer's
memory
after recording
is
completed, so
type
in
NEW
J
to
delete
it
(enter
LIST J
to
confirm
that
the program has been deleted). Now let's try using the LOAD
instruction
to
load the program back
into
memory from the cassette tape
as
described on page 14.
When a cassette tape contains many programs,
that
which
is
to
be loaded can be identified
by
specifying
the program's file name together with the
LOAD instruction
as
follows.
LOAD
11
CALCULATION
11
J
Specifying the file name in this
manner
tells the
computer
to ignore all programs on the tape
other
than
that
with
the
specified name.
If
the file name
is
not
specified
(if
only
LOADJ
is
entered), the
computer
loads
the
first program encountered.
Note: When using cassette recorder
other
than
the
data
recorder built
into
the
MZ-731, and MZ-721 read
the instructions on page 109 before attempting
to
record
or
load programs.
The LIST command shown above can be used in a variety
of
different ways.
For
example, during
editing LIST
20 J can be used
to
display
just
line 20
of
a program. The entire program can be listed
by entering LIST
J .
Other
uses
of
the instruction are
as
follows.
[[J[IJ[BJITJ
EJ[a][QJICRI
[[J[IJ[BJITJ
[a][QJEJI
C
RI
[[J[I][BJITJ
[a][QJEJ[QJ[Q]
I c
RI
[[J[I][BJITJ
[a][QJ
IC
RI
Lists all lines
of
the program
to
line 30.
Lists all lines from line
30
to
the end
of
the program.
Lists all lines from line
30
to
line 50.
Lists line 30.
When editing programs
by
listing individual lines with the LIST instruction, press the I
CLR
I key
(the
INST I key) together with the I SHIFT I key when
the
screen becomes distractingly crowded. This
clears the entire screen and moves the cursor
to
its
upper
left corner. (This does
not
affect the program
in memory). Afterwards,
enter
LIST<
line
number>
J again
to
list the line which is
to
be edited.
20----------------------------------
------
-----------------------------

Other manuals for Sharp MZ-700

Related product manuals