OUT transfers a byte, a word, or a doubleword from the accumulator (AL, AX, or EAX) to a specified port. 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). If the instruction contains an 8-bit port ID, that value is zero- extended to 16 bits.
Protected mode An exception occurs if the current task has insufficient privilege for the I/O. OUT is not IOPL-sensitive in V86 mode.
Note I/O ports F8h through FFh are reserved by Intel.
Opcode Format E6 ib OUT imm8,AL E7 ib OUT imm8,AX E7 ib OUT imm8,EAX EE OUT DX,AL EF OUT DX,AX EF OUT DX,EAX