INP Function Details Syntax INP(port) The port must be an integer in the range 0-65,535. The INP function complements the OUT statement. The INP and OUT 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 system hardware.