Date : Fri, 08 Jun 1984 10:36:06 PDT (Friday)
From : Bicer.ES@XEROX.ARPA
Subject: Re: Forwarded message about BBS's.
-- GENERAL CASE...
I don't think that there is an easy way out. I would recommend writing
three subroutines.
1 - PORT INSTAT - Check Port Data Received (RxRDY) status.
2 - PORT IN - If PORT INSTAT is ready then INput the character.
3 - PORT OUT - Check Port Data Ready to Send (TxRDY) status, if it is
not ready, loop, else OUTput the character.
These routines are not difficult to write, and once you write it, you can
call them as many times as you like.
-- ALTERNATIVE ...
If you are very lucky to have the BIOS implementor of your system implement the
I/O byte, such that the system checks the I/O byte location before it does I/O
operation, AND the port you wish can be specified as logical CP/M device (see
STAT documentation), then all you have to do is poke a value into location 3.
The INPUT, INKEY and PRINT will work on the set port.
Jack Bicer