X86-assembly/Instructions/in

From aldeid
Jump to navigation Jump to search
You are here:
in

Description

  • The in instruction reads from a port (serial and printer ports, keyboard, mouse, temperature sensors, ...)
  • Almost always implies the AX (or EAX) and DX (or EDX) operands. DX (or EDX) frequently holds the port address to read (src), and AX (or EAX) receives the data from the port (dest).

Syntax

in dest, src

Examples

in eax, dx

Comments