in

Input from Port

IN AL, imm8

Reads data from an I/O port into AL/AX/EAX.

Details

The Input from Port instruction reads data from an I/O port into AL/AX/EAX.

Pseudocode Operation

// Reads data from an I/O port into AL/AX/EAX

Example

IN AL, 3

Encoding

Binary Layout
E4
+0
 
Format Legacy
Opcode E4
Extension Base

Operands

  • dest
    Implicit AL register (8-bit accumulator)
  • src
    8-bit signed immediate