In assembly, how can I store esp's address displaced by 4 to a variable? -


Is it possible to do this? What do I want to do, for example another register, esi, esp + 4 address

  mov ecx, [esp + 4]   

I Which I understand, does the ESP + 4 not address the value contained in the address of EPC + 4 in Exx but above the code given above? I'm relatively new to assembly programming, so thanks to everyone who would be happy to help me.

Usage (Load Effective Address)

For example:

  Lea Xx, [esp + 4]   

You can do this manually like it Do:

  mov ecx, esp add ecx, 4    

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -