confusion over lea and mov instructions

From: Justin Miller (spamtrap_at_crayne.org)
Date: 10/27/04


Date: Tue, 26 Oct 2004 22:10:11 +0000 (UTC)

These two instructions:

lea ebx, [esi]

and

mov ebx, esi

would essentially do the same thing right?

I understand that something like:

lea ebx, [esi + 4]

could not be done w/ the move command by simply removing the brackets

But it just seems to me that the two instructions in my first example
would be doing the same thing. Or I guess there is another possibility.
Assuming the value stored in esi is an address, is the command:

mov ebx, esi

storing the address of esi itself in ebx? As opposed to:

lea ebx, [esi]

storing the address that esi holds?

I'm real confused.

Justin



Relevant Pages