I/O Statements - Sharp MZ-700 Series Owner's Manual

Personal computer
Hide thumbs Also See for MZ-700 Series:
Table of Contents

Advertisement

2.9
I/O Statements
All external devices (including floppy disk drives) are connected to the MZ-700 through an optional
interface board. The optional universal interface 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 (00H 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 f r o m / t o external devices through the
optional universal I/O 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-

Advertisement

Table of Contents
loading

Table of Contents