Some of CPU general purpose registers – Intel,
arsitektur x86 :
- EAX => accumulator.
used to perform calculations and used to store the
return value from the function call. base of operations such as
addition, subtraction, comparisons using these registers.
- EBX => base.
can be used to store data
- ECX => counter.
can be used for looping, this
register counts down.
- EDX => data.
used for addition to the EAX register. can be used for more complex calculations such as: division or subtraction by adding extra data to memfalisitasi calculation.
- ESI => source index,
used for the detention of the location of the input data
- EDI => destination index.
contains a pointer location where the result of the operation data is stored.
- EIP => instruction pointer.
contains a pointer location where the next instruction will be executed by the CPU.
- EBP => base pointer.
also commonly called the frame pointer (base pointer
is the terminology intel). used to reference all function
parameters and local variables in stack frame.
Tidak ada komentar:
Posting Komentar