OUT Statement Details Syntax OUT port, data Argument Description port The number of the port. The number must be an integer expression in the range 0-65,535. data The data to be sent to the port. It must be an integer expression in the range 0-255. The OUT and INP statements give a BASIC program direct control over the hardware in a system through the I/O ports. These statements must be used carefully because they directly manipulate the hardware.