x86

Notes on the x86 architecture gathered while reading Practical Reverse Engineering (see also Reverse Engineering).

General-purpose registers

  1. EAX: Accumulator for operands and results data.

  2. EBX: Pointer to data in the DS segment.

  3. ECX: Counter for string and loop operations.

  4. EDX: I/O pointer.

  5. ESI: Pointer to data in the segment pointed to by the DS register; source pointer for string operations.

  6. EDI: Pointer to data (or destination) in the segment pointed to by the ES register; destination pointer for string operations.

  7. ESP: Stack pointer (in the SS segment).

  8. EBP: Pointer to data on the stack (in the SS segment).