2.9
1/0 Statements
All external devices (including floppy disk drives) are connected
to
the
MZ-700 through an optional
interface board. The optional universal
~nterface
board makes it possible for the user
to
connect external
devices such as an X-Y plotter, paper tape punch, and music synthesizer to the
MZ-700.
A
port
address selection switch is provided on the universal interface card to allow any
port
address from
0
to
239
(OOH
to
EFH)
can be assigned
to
any devices. Addresses
240
to 255 are reserved for optional
peripheral devices supplied
by
Sharp.
The INP and OUT statements allow the user to transfer data
from/to
external devices through
the
optional universal.I/0 card. The format
of
these statements
is
as
follows.
INP
#P,
D
.......
. . Reads 8-bit data from
port
P,
converts
it
into a decimal
number
and
assigns
it
to variable
D.
OUT
#P,
D
.........
Converts a decimal
number
in variable D
to
binary format and
outputs
it
to
port
D.
These statements greatly extend the range
of
applications
of
the MZ-700 series computers.
------------------------------------------------------------------------
95