Re: [Tuxnes-devel] more help w/ asm
Brought to you by:
tmmm
From: Rigel <ri...@an...> - 2001-04-11 20:42:04
|
-- On Wed, 11 Apr 2001 12:20:56 Jim Ursetto wrote: >At 10:45am on 2001 April 11, Rigel did write: >> Hi again, >> All right, I have another one. What's the difference between, say: >> leal 0(%edi),%ebx >> and, >> movl 0(%edi),%ebx. >> >> This is my guess. leal loads value held in mem loc edi into ebx, and movl loads value of mem loc held in edi to ebx. If you understand that, am I right? >Yes, although for "leal" I think you mean "register edi". The leal is >equivalent to movl %edi,%ebx. [At least, I'm 99.9% sure >there isn't any difference.] > >Note also that leal 3(%esi),%esi and addl 3,%esi are >used interchangably in table.x86, which can be a little >confusing. > >-- I was wrong, then, because I meant load into ebx the value at the mem location held in edi. So if I say, leal 4(%ebx),%edi then I mean (in C), edi = ebx + 4 ? Who needs Cupid? Matchmaker.com is the place to meet somebody. FREE Two-week Trial Membership at http://www.matchmaker.com/home?rs=200015 |