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

Re: [MiNT] PUSH_SP



Op 8/29/11 12:52 AM, Vincent Rivière schreef:
Helmut Karlowski wrote:
I have a small problem with this macro.

It is defined in mint/arch/asm_misc.h:

#define PUSH_SP(regs,size) \
"movml " regs ",sp@-\n\t"

For memory, this macro produces a movem instruction which is compatible
with both 680x0 and ColdFire.

Are you sure?

I am not a MIT syntax expert, but it looks to me like

movem.l regs,-(sp)

which is illegal on Coldfire.

--
Groeten; Regards.
Henk Robbers. http://members.chello.nl/h.robbers
Interactive disassembler: TT-Digger;  http://digger.atari.org
A Home Cooked C compiler:      AHCC;  http://ahcc.atari.org