The respective roles of general register

Purpose registers

  • Data may be performed within the register and arithmetic logic operations.
  • An address stored in the register may be used to point to a memory location, i.e. address.
  • It can be used to read and write data to the computer peripheral equipment.

Their respective roles

register effect
EAX Storing a result obtained after a program is finished
even As a counter, such as the number of execution of this command will read rep from the ECX register
EDX In certain arithmetic overflow as EAX register, such as multiplication, and division operations
EBX As generally used memory offset pointer (relative to the EAX, ECX, EDX)
EBP It is also used as a pointer register. Typically, it is used to build high-level language compiler 'stack frame' to save the local variables or process
ESP Record current usage of the stack (where uses)
ESI Source address pointer MOVS instruction
I KNOW Object address pointer MOVS instruction
Published 25 original articles · won praise 29 · views 4208

Guess you like

Origin blog.csdn.net/qq_43573676/article/details/104314791