Use move.w with short in SysError(), InitEvents(), InitFS()

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Laurent Vivier 2014-05-09 02:38:54 +02:00
parent 6e9f924edb
commit b335df3487
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ enum {
#ifdef __mc68000__ #ifdef __mc68000__
static inline void SysError(short errorCode) static inline void SysError(short errorCode)
{ {
asm("move.l %0, %%d0\n" asm("move.w %0, %%d0\n"
Trap(_SysError) Trap(_SysError)
:: "g" (errorCode) : "%%d0", UNPRESERVED_REGS); :: "g" (errorCode) : "%%d0", UNPRESERVED_REGS);
} }

View File

@ -12,14 +12,14 @@
#ifdef __mc68000__ #ifdef __mc68000__
statis inline void InitEvents(short CntEvts) statis inline void InitEvents(short CntEvts)
{ {
asm("move.l %0, %%d0\n" asm("move.w %0, %%d0\n"
Trap(_InitEvents) Trap(_InitEvents)
:: "g" (CntEvts) : "%%d0", UNPRESERVED_REGS); :: "g" (CntEvts) : "%%d0", UNPRESERVED_REGS);
} }
static inline void InitFS(short CntFCBs) static inline void InitFS(short CntFCBs)
{ {
asm("move.l %0, %%d0\n" asm("move.w %0, %%d0\n"
Trap(_InitFs) Trap(_InitFs)
:: "g" (CntFCBs) : "%%d0", UNPRESERVED_REGS); :: "g" (CntFCBs) : "%%d0", UNPRESERVED_REGS);
} }