kevin ma

WORD type movement, and "movem" instruction

Discussion created by kevin ma on Mar 4, 2006
Latest reply on Mar 7, 2006 by CrasyCat
I just started to optimize some C code for a coldfire platform with EMAC. One problem I met when trying to write assembly is to move the contents of some integers to some registers. I know I can do this for type LONG. For example, I can use:
 movem.l (a1), a2-a5;
to move LONG type contents pointed by a1 to registers a2-a5. But how can I do the same thing for type WORD? movem doesn't support WORD.
Thanks a lot.