Re: A89: Re: Address Error


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

Re: A89: Re: Address Error




In a message dated 12/6/98 9:03:01 PM Pacific Standard Time, justin-b@juno.com
writes:

<< Why do you have to add longword 10?  Why can't you say: add.b #10, a7? >>

Say the a7 register contains this:
4826F9FF
If you use add.b, it will treat a7 as if it contains this.
000000FF, and it will not carry into the next place.  You must use add.l, so
it adds 10 to
4826F9FF.

You have to add 10 to reset the stack to position it was in before you called
the function that you pushed 10 bytes for.

Daniel Imfeld