Important Registers to know in X86 for C programmer

Hi there are many register in x86 (i’m not sure other architecture use same convention) CPU, however there are 3 registers C programmer must know :

1. ESP

ESP or stack pointer used by several instruction to operate like pop and push, many assembly programmer love to use stack pointer for operating some value. ESP always point to used address.

2. EBS

Every function create new stack frame – also called EBS – , EBS contain function parameter or local variable.

3. EIP

EIP is instruction Pointer, address pointed by EIP containt next instruction executed by CPU.

Actually my description is far from complete, but it will enough for starting point to learn function call convention.

One thought on “Important Registers to know in X86 for C programmer

  1. Pingback: Look your code nakedly | In My Honest Opinion

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s