A89: Re: Re: Re: ASM Question...


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

A89: Re: Re: Re: ASM Question...




So - would
	movem.l	d0-d2/a0,-(a7)
push a0, d2, d1 and d0 or just a0, d2 and d0?

----------
> From: Alain BROBECKER <abrobecker@yahoo.com>
> To: assembly-89@lists.ticalc.org
> Subject: Re: A89: Re: Re: Re: ASM Question...
> Date: 24. oktober 1998 12:09
> 
> 
> As far as i remember (i didn't code on 68k for some years),
> it does the following:
>   a7   <- a7-4  ; 4 because size is .l, woul be 2 with .w...
>   (a7) <- a0.l
>   a7   <- a7-4
>   (a7) <- d1.l
>   a7   <- a7-4
>   (a7) <- d0.l
> 
> So that d0,d1 & a7 are consecutive in memory.
> And as said in another answer, "movem.l (sp)+,d0-d1/a0"
> will restore registers correctly.
> 
> Note that it is similar to "movem.l a0/d0-d1,-(a7)"
> 
> 
> >What does these op's do?
> > movem.l d0-d1/a0,-(a7)
> 
> ==
> Alain BROBECKER (baah/Arm's Tech)    |_  _  _ |_                    ___
> abrobecker@yahoo.com                 |_)(_|(_|| )  of  /\  _ _  _ /  | _
_|_ 
> http://www.cybercable.tm.fr/~brooby/                  /--\| ||)_)   
|(-(_| )
> 
> 
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com