EMILE/libmacos/macos/init.h

28 lines
500 B
C
Raw Normal View History

2005-11-08 02:02:16 +00:00
/*
*
* (c) 2004,2005 Laurent Vivier <Laurent@Vivier.EU>
2005-11-08 02:02:16 +00:00
*
*/
#ifndef __MACOS_INIT_H__
#define __MACOS_INIT_H__
#include <macos/traps.h>
#ifdef __mc68000__
2005-11-08 02:02:16 +00:00
statis inline void InitEvents(short CntEvts)
{
asm("move.w %0, %%d0\n"
2005-11-08 02:02:16 +00:00
Trap(_InitEvents)
:: "g" (CntEvts) : "%%d0", UNPRESERVED_REGS);
}
static inline void InitFS(short CntFCBs)
{
asm("move.w %0, %%d0\n"
2005-11-08 02:02:16 +00:00
Trap(_InitFs)
:: "g" (CntFCBs) : "%%d0", UNPRESERVED_REGS);
}
#endif /* __mc68000__ */
2005-11-08 02:02:16 +00:00
#endif /* __MACOS_INIT_H__ */