bas7advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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.