[A89] movem
[Prev][Next][Index][Thread]
[A89] movem
Hi guys, hope you don't mind another beginning asm question.
I'm trying to use some inline asm in tigcc to save a2 and a5, i know that i
could do it with move.l, but I decided to be adventurous and try movem for
fun, but
I can't get it to work...
so my question is: What is the best way to push and then later pop a2 and a5
from the stack?
With movem, I've tried
movem.l %a2/%a5,-(%sp)
movem.l (%sp)+,%a2/%a5
the first statement compiles just fine; the second does NOT.
thanks,
Greg
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Follow-Ups: