Professional Documents
Culture Documents
Fetch
Execute Decode
Understanding Registers
One of the main tools to write programs in x86 assembly are the
processor registers.
You can, informally, think of registers as variables that are built in the
processor.
Using registers instead of memory to store values, makes the process
faster and more efficient.
x86 CPU has eight 32-bit General-Purpose Registers
(eax, ecx, edx, ebx, esp, ebp, esi, edi)
These registers are used for temporary data storage
and memory access.
16-bit registers
(ax, cx, dx, bx, sp, bp, si, di)
32-bit
8-bit registers
(al, cl, dl, bl, ah, ch, dh, bh)
Example
@firstcodeyt