What does ESP mean in assembly? [duplicate]

空扰寡人 提交于 2019-12-01 03:35:53

问题


ESP = ? stack pointer

What does E stand for here?

UPDATE

RSP for 64bit?

What does R mean here?


回答1:


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




回答2:


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.




回答3:


Perhaps for consistency with the other 32-bit registers: EAX, EBX etc.

For those, E means "extended" - i.e. to 32 bits (the 16-bit versions are called AX, BX etc.)

P.S. according to The Free Dictionary, ESP stands for Extended Stack Pointer.




回答4:


E means Extended. If you have SP 16bit, so ESP should be 32bit.



来源:https://stackoverflow.com/questions/2537367/what-does-esp-mean-in-assembly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!