home *** CD-ROM | disk | FTP | other *** search
- /* WAIT(port, mask, x) -- wait for bit pattern in port
-
- Copyright (c) 1983, 1984 by JMI Software Consultants, Inc.
- */
-
- #include "acom.h"
-
- VOID WAIT(port, mask, x)
- BYTES port;
- INT mask, x;
- {
- if (port == -1)
- port = 0;
- if (x == -1)
- x = 0;
- x &= 0xff;
- while (((inp(port) ^ x) & mask) == 0)
- ;
- }
-