INP()
Action

Returns a byte read from a hardware port or external memory location.

Syntax

var = INP(address)

Remarks

var Numeric variable that receives the value.
address The address where to read the value from.
The INP statement only works on systems with an uP that can address external
memory.

See also
OUT

Example


Dim a As Byte
a = INP(&H8000) 'read value that is placed on databus(d0-d7) at
'hex address 8000
PRINT a
END