QBasic 1.1: INP Function

Syntax

INP(port%)
OUT port%, data%

Description / Parameter(s)

port% A number in the range 0 through 65,535 that identifies the port.
data% A numeric expression in the range 0 through 255 to send to the port.

Example

x% = INP(&H3FC) 'Read COM1 Modem Control Register. OUT &H3FC, (x% XOR 1) 'Change Data Terminal Ready bit.