IN reads a byte, word, or a doubleword from a specified port and stores it in AL, AX, or EAX. The port number is specified as an immediate byte value (for ports 0 thru 255) or by the DX register (allowing access to all ports).
Protected mode An exception occurs if the current task has insufficient privilege for the I/O. IN is not IOPL-sensitive in V86 mode.
Opcode Format E4 ib IN AL,imm8 E5 ib IN AX,imm8 E5 ib IN EAX,imm8 EC IN AL,DX ED IN AX,DX ED IN EAX,DX