confusion over lea and mov instructions
From: Justin Miller (spamtrap_at_crayne.org)
Date: 10/27/04
- Next message: Matt: "Re: Branch/load delay in x86 architecture?"
- Previous message: Charles A. Crayne: "Re: Problems with Earthlink news server"
- Next in thread: wolfgang kern: "Re: confusion over lea and mov instructions"
- Reply: wolfgang kern: "Re: confusion over lea and mov instructions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Matt: "Re: Branch/load delay in x86 architecture?"
- Previous message: Charles A. Crayne: "Re: Problems with Earthlink news server"
- Next in thread: wolfgang kern: "Re: confusion over lea and mov instructions"
- Reply: wolfgang kern: "Re: confusion over lea and mov instructions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|