UNIT ibmcom;
{Version 3.0}
{This unit is the communications port interrupt driver for the IBM-PC.
It handles handles all low-level i/o through the serial port. It is
installed by calling com_install. It deinstalls itself automatically
when the program exits, or you can deinstall it by calling com_deinstall.
Donated to the public domain by Wayne E. Conrad, January, 1989.
If you have any problems or suggestions, please contact me at my BBS:
Pascalaholics Anonymous
(602) 484-9356
2400 bps
The home of WBBS
Lots of source code
}
PROGRAM ibmcomt;
{Simple test program for IBMCOM. Acts like a dumb terminal at a fixed
speed and with no commands except for Alt-X, to exit the program.
Obviously, it doesn't test all of IBMCOM, but it tests the most
important parts -- receiving and sending characters.}
{Read a key from the keyboard. If it's an ordinary key, the ascii code
is returned in ch1 and ch2 is #0. If it's a function key, ch1 is 0 and
the scan code is in ch2.}
|