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

Re: [MiNT] mulu.l with 68000



On 26/01/2014 19:03, David Gálvez wrote:
does anybody have the routine to emulate the instruction mulu.l dx,dy
with a 68000?

There is one in libgcc, it is named __mulsi3().

        move.l a,-(sp)
        move.l b,-(sp)
        jsr ___mulsi3
        addq.l #8,%sp

Then compile with -lgcc (if not already the case).

--
Vincent Rivière