diff --git a/libmacos/macos/errors.h b/libmacos/macos/errors.h index e5073dd..190c2ea 100644 --- a/libmacos/macos/errors.h +++ b/libmacos/macos/errors.h @@ -37,7 +37,7 @@ enum { #ifdef __mc68000__ static inline void SysError(short errorCode) { - asm("move.l %0, %%d0\n" + asm("move.w %0, %%d0\n" Trap(_SysError) :: "g" (errorCode) : "%%d0", UNPRESERVED_REGS); } diff --git a/libmacos/macos/init.h b/libmacos/macos/init.h index cddfab3..2813541 100644 --- a/libmacos/macos/init.h +++ b/libmacos/macos/init.h @@ -12,14 +12,14 @@ #ifdef __mc68000__ statis inline void InitEvents(short CntEvts) { - asm("move.l %0, %%d0\n" + asm("move.w %0, %%d0\n" Trap(_InitEvents) :: "g" (CntEvts) : "%%d0", UNPRESERVED_REGS); } static inline void InitFS(short CntFCBs) { - asm("move.l %0, %%d0\n" + asm("move.w %0, %%d0\n" Trap(_InitFs) :: "g" (CntFCBs) : "%%d0", UNPRESERVED_REGS); }