Specifications

361
Syntax:
INP(portnumber)
Parameter:
portnumber
A numeric expression which returns a value from 0 to 32767.
Description:
INP reads one-byte data from an input port specified by portnumber and returns
the value. (For the input port numbers, refer to Appendix D, "I/O Ports.")
If you specify an invalid value to portnumber, INP returns an indeterminate
value.
Run-time errors:
Reference:
INPort data I/O function
INP
Returns a byte read from a specified input port.
Error code Meaning
05h
Parameter out of the range
(
portnumber is out of the range.)
Statements:
OUT and WAIT