NAME
WAIT Statement
SYNOPSIS
WAIT portnumber%, AND-expression% [,XOR-expression%]
o portnumber% The number of the input port.
o AND-expression% An integer expression that WAIT combines with the
bit pattern value using an AND operator. When the
result is nonzero, WAIT stops monitoring the port.
o XOR-expression% Can be used to turn line bits on and off in the bit
pattern before the AND operation is applied.
DESCRIPTION
Suspends program execution until a specified bit pattern is input from an
input port.
Example:
'Reads the interrupt controller port address &H20.
'Press any key to continue.
WAIT &H20, 1
SEE ALSO
INP OUT Boolean Operators