mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-21 18:30:20 +00:00
Use move.w with short in SysError(), InitEvents(), InitFS()
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
6e9f924edb
commit
b335df3487
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user