Re: A89: Re: Stupid Question


[Prev][Next][Index][Thread]

Re: A89: Re: Stupid Question




It depends on how much to push to the stack...

-Miles Raymond      EML: m_rayman@bigfoot.com
ICQ: 13217756       IRC: Killer2        AIM: MRayMan
http://www.bigfoot.com/~m_rayman/

-----Original Message-----
From: Ben Rodgers <bentensai@yahoo.com>
To: assembly-89@lists.ticalc.org <assembly-89@lists.ticalc.org>
Date: Monday, February 22, 1999 9:43 PM
Subject: Re: A89: Re: Stupid Question


>How do you  know how much to add to the stack?
>
>---Miles Raymond <m_rayman@bigfoot.com> wrote:
>> 
>> Load Effective Address = lea
>> 
>> The 10 in front of the (a7) loads the address of a7 plus an offset
>of 10
>> into a7.  As to which one is more efficeint, I assume that lea is,
>since it
>> is used most often for restoring the stack.
>> 
>> -Miles Raymond      EML: m_rayman@bigfoot.com
>> ICQ: 13217756       IRC: Killer2        AIM: MRayMan
>> http://www.bigfoot.com/~m_rayman/
>> 
>> -----Original Message-----
>> From: Daniel Walls <flinn@mindspring.com>
>> To: assembly-89@lists.ticalc.org <assembly-89@lists.ticalc.org>
>> Date: Sunday, February 21, 1999 11:53 PM
>> Subject: A89: Stupid Question
>> 
>> >Which is more efficient for cleaning up the stack...
>> >
>> >add.l #10,a7
>> >      ..or..
>> >lea 10(a7),a7
>> >
>> >and I know they both do the same thing,
>> >but how does lea(a7),a7 work?  I know what it does,
>> >but what does it mean?
>> >
>> >Lazy way to 68k,
>> >- Daniel Walls
>> >flinn@mindspring.com