Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
WAIT Statement
◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
WAIT portnumber, and-expression% [,xor-expression%]
■ portnumber An unsigned integer expression between 0 and
65,535, inclusive, that is the number of the machine
input port.
■ and-expression% An integer expression that is repeatedly combined
with the bit pattern received at the port, using
an AND operator; when the result is nonzero, the
WAIT statement stops monitoring the port, and program
execution resumes with the next program statement.
■ xor-expression% Can be used to turn bits on and off in the received
bit pattern before the AND operation is applied.
■ The WAIT statement is not available in OS/2 protected mode.
See Also ◄INP► ◄OUT► ◄AND Operator► ◄XOR Operator►