Input a byte (_inp) or a word (_inpw) from a port.
#include <conio.h> | Required only for function declarations |
int _inp( unsigned port );
unsigned _inpw( unsigned port );
port | Port number |
The _inp and _inpw functions read a byte and a word, respectively, from the specified input port. The input value can be any unsigned integer in the range 0 – 65,535.
The functions return the byte or word read from port. There is no error return.
Standards:None
16-Bit:DOS
32-Bit:None
See the example for _outp.