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


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

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




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