Specifications

Commands - 55
INP and OUT
I/O Function and Statement
SYNTAX: n = INP(I/O address)
OUT I/O Address, Data
PURPOSE: INP returns a byte from an I/O address.
OUT writes a byte to an I/O address.
REMARKS: INP is the complementary function to the OUT statement.
WARNING: Some I/O address are used internally and should not be written to with the OUT
statement. See your hardware manual for these reserved addresses.
RELATED: BIT
EXAMPLE: 100 A = INP(255)
120 OUT &40,12
ERROR: <Data negative> – for I/O address and data
<Illegal argument> – if I/O address > 65,535
<Data >255> – if data > 255