Re: A89: Starting out assembly, need help
[Prev][Next][Index][Thread]
Re: A89: Starting out assembly, need help
In a message dated 12/4/98 8:13:39 PM Pacific Standard Time, TurboSoft@aol.com
writes:
<< Well wouldn't the subroutine in the library have to pop the values back
from
the register to get to the data? And if this is true, why does the stack
have
to be set back to where it was sometime after the function? >>
No, the subroutine access the data like this:
move d0, 2(a7)
This would put the last word pushed on the stack into d0 _without_ removing
it. Like I said, C dictates that the caller resets the stack to normal.
Daniel Imfeld