Inp(PORT) Function

Purpose

Reads a byte from a port.

Syntax

Inp(PORT n)

Description

Inp(PORT n) reads a byte from a hardware port register, RTC for example.

Example

This command implies an intimate knowledge of the hardware and is not portable.

Remarks

INP(^ n), INP|(PORT n) and INP|(^ n) are synonymous with INP(PORT n) and can be used instead.

INP&(^ n) can be used to read a word (two bytes) and INP%(PORT n) a long (four bytes) from successive port addresses.

See Also

Out(PORT)

{Created by Sjouke Hamstra; Last updated: 12/05/14 by James Gaite}