What do you understand about Direct port I/O?
Direct Port I/O are of system dependent from type of computer and configuration of computer.It may be dangerous when we use this uncarefully.
Some main Direct I/O functions are given below:
inp(): Use to Inputs a byte of data from the specified port
inpw(): Use to Inputs two bytes of data from the specified port
outp(): Use to Outputs a byte of data to the specified port
outpw(): Outputs two bytes of data to the specified port
Always it returns type int,All output function returns in terms of byte or word and input function return currently input byte or word.