[A89] Re: movem


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

[A89] Re: movem




Each individual move.l is two bytes.

The movem.l I believe to be 4 bytes (a word for the opcode and a word to 
spcify which reigisters to move.)

So with two move.ls takes the same size as the movem.l.

I don't know which is faster.  I would guess the movem.


  -Samuel



23 He (Elisha) went up from there to Bethel; and while he was going up on 
the way, some small boys came out of the city and jeered at him saying, 
"Go away, baldhead!  Go away, baldhead!  24 When he turned around and saw 
them, he cursed them in the name of the lord.  Then two she-bears came out 
of the woods and mauled forty-two of the boys.  25 From there he went on 
to Mount Carmel, and then returned to Samaria.

	- 2 Kings 2: 23-25



Quoting Greg <newstome2001@yahoo.com>:

> 
> It compiles correctly for me now too... It was pretty much a
> direct cut and
> paste from my code when i posted it, but I already threw that code
> away in
> favor of just using move.l because it was working...
> 
> Now I have a dilemma; it appears that when I just save and restore
> those two
> registers (A2 & A5), that move and movem produce the same sized
> code. Is one
> method faster than the other in this situation? I've looked at the
> Motorola
> documentation, but am not sure how to decipher the timings for
> movem.
> 
> Thanks for all of your help,
> Greg
> 
> 
> ----- Original Message -----
> From: "Olle Hedman" <oh@hem.passagen.se>
> To: <assembly-89@lists.ticalc.org>
> Sent: Sunday, April 22, 2001 3:09 AM
> Subject: [A89] Re: movem
> 
> 
> >
> > At 08:49 2001-04-22, you wrote:
> > >movem.l %a2/%a5,-(%sp)
> > >movem.l (%sp)+,%a2/%a5
> > >
> > >the first statement compiles just fine; the second does NOT.
> >
> > Interesting. exactly that compiles just fine for me.
> > (and it should)
> > You probably do some other error, not visible in your mail.
> >
> > ///Olle
> >
> >
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
>



References: