Daftar Blog Saya

Sabtu, 04 Februari 2012

Memory Register

Register a partial memory of the microprocessor which can be accessed with a very high speed. In doing his job microprocessor registers are always used as the intermediary, so the register can be likened to the feet and hands microprocessor.

An Intel x86-based CPU uses 8 registers as general purpose, namely: EAX, EDX, ECX, ESI, EDI, EBP, ESP and EBX.

EAX register, used to perform calculations and store the value returned from a function call (function calls). Basic operations such as add, subtract, and compare the optimized use of register EAX. Special operations such as multiplication and division are also only in the EAX register.

Data Register is a register EDX. Basically an extension of EAX to (help) save additional data for complex operations. It can also be used for general purpose data storage.

ECX registers, also called the count register is used for loop operations. Loop operation can save the string, or counting numbers.

ESI and EDI registers relied upon by the loop that processes the data. Register ESI is the index of the source (S in the ESI means the Source, which means the source) to the operating data and holds the location of input data
streams. EDI register points to the location where the operation data is stored, or index of the destination (Destination D on EDI means that meaningful purpose).


ESP is the stack pointer register, and register EBP is the base pointer. These registers are used to set the function calls and stack operations. When this function is called, the function arguments will
pushed onto the stack and followed by the address of the sender (return address). ESP points to the top of the stack, so it will point to the address of the sender (return address). While EBP is used to refer to the call stack at the bottom.

Register EBX is the only register that is not designed for anything special. But is used for extra storage.

EIP register is a register that points to the instruction currently being executed. When the CPU is engaged in the binary, the address is always updated EIP to determine the location where the execution occurred.

Tidak ada komentar:

Posting Komentar