Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does ESP mean in assembly? [duplicate]

ESP = ? stack pointer

What does E stand for here?

UPDATE

RSP for 64bit?

What does R mean here?

like image 747
Mask Avatar asked Mar 29 '10 11:03

Mask


2 Answers

E stands for Extended

With the advent of the 32-bit 80386 processor, the 16-bit general-purpose registers, base registers, index registers, instruction pointer, and FLAGS register, but not the segment registers, were expanded to 32 bits. This is represented by prefixing an "E" (for Extended) to the register names in x86 assembly language.

Source

like image 63
codaddict Avatar answered Oct 11 '22 22:10

codaddict


R is just for "register", with the new registers called just r8-r15. Since the old ones also needed names for their extended versions, the e was just swapped to r.

like image 23
Tuna-Fish Avatar answered Oct 11 '22 22:10

Tuna-Fish