bas7advr.hlp (Topic list)
INP Function Details
  Syntax  Details  Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
INP returns the byte read from a hardware I/O port.
 
INP(port)
 
Usage Notes
    ■ The INP function complements the OUT statement, which sends a byte
      to a hardware I/O port.
    ■ INP and OUT give a BASIC program direct control over the hardware
      in a system through the I/O ports. INP and OUT must be used carefully
      because they directly manipulate the system hardware.