Explanation
WAIT Statement
Suspends program execution until a specified bit pattern is input from an input port.Worth knowing
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
WAIT portnumber%, AND-expression% [,XOR-expression%] |
portnumber% | The number of the input port. |
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. |
XOR-expression% | Can be used to turn line bits on and off in the bit pattern before the AND operation is applied. |
'Reads the interrupt controller port address &H20.
'Press any key to continue.
WAIT &H20, 1
See also: | INP, OUT | Boolean Operators |