Hot answers tagged


Warning: Illegal instruction used for explanation. If you are wondering if mov can do the work of lea, mov eax, esp+4 and lea eax, [esp+4] copies the same value to eax. However, mov eax, esp+4 is not a legal instruction! (esp+4 is not a legal addressing mode.) But then, can you replace lea eax, [esp+4] with the following? mov eax, esp add eax, 4 Not really! ...

Only top voted, non community-wiki answers of a minimum length are eligible