From b335df3487c0e5ce99e66295d572abac532ad006 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Fri, 9 May 2014 02:38:54 +0200 Subject: [PATCH] Use move.w with short in SysError(), InitEvents(), InitFS() Signed-off-by: Laurent Vivier --- libmacos/macos/errors.h | 2 +- libmacos/macos/init.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); }