home *** CD-ROM | disk | FTP | other *** search
- #include <inline/stub.h>
- #ifndef BASE_EXT_DECL
- #define BASE_EXT_DECL extern struct Library * CxBase;
- #endif
- #ifndef BASE_PAR_DECL
- #define BASE_PAR_DECL
- #define BASE_PAR_DECL0 void
- #endif
- #ifndef BASE_NAME
- #define BASE_NAME CxBase
- #endif
- __inline static CxObj* CreateCxObj(BASE_PAR_DECL long unsigned int type, long int arg1, long int arg2)
- {
- BASE_EXT_DECL
- register CxObj* res __asm("d0");
- register void *a6 __asm ("a6");
- register long unsigned int d0 __asm("d0");
- register long int a0 __asm("a0");
- register long int a1 __asm("a1");
-
- a6 = BASE_NAME;
- d0 = type;
- a0 = arg1;
- a1 = arg2;
- __asm volatile ("
- jsr a6@(-0x1e)"
- : "=g" (res)
- : "g" (a6), "g" (d0), "g" (a0), "g" (a1)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- __inline static CxObj* CxBroker(BASE_PAR_DECL struct NewBroker* nb, LONG* error)
- {
- BASE_EXT_DECL
- register CxObj* res __asm("d0");
- register void *a6 __asm ("a6");
- register struct NewBroker* a0 __asm("a0");
- register LONG* d0 __asm("d0");
-
- a6 = BASE_NAME;
- a0 = nb;
- d0 = error;
- __asm volatile ("
- jsr a6@(-0x24)"
- : "=g" (res)
- : "g" (a6), "g" (a0), "g" (d0)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- __inline static LONG ActivateCxObj(BASE_PAR_DECL CxObj* co, long int true)
- {
- BASE_EXT_DECL
- register LONG res __asm("d0");
- register void *a6 __asm ("a6");
- register CxObj* a0 __asm("a0");
- register long int d0 __asm("d0");
-
- a6 = BASE_NAME;
- a0 = co;
- d0 = true;
- __asm volatile ("
- jsr a6@(-0x2a)"
- : "=g" (res)
- : "g" (a6), "g" (a0), "g" (d0)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- __inline static void DeleteCxObj(BASE_PAR_DECL CxObj* co)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register CxObj* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = co;
- __asm volatile ("
- jsr a6@(-0x30)"
- : /* no output */
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- }
- __inline static void DeleteCxObjAll(BASE_PAR_DECL CxObj* co)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register CxObj* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = co;
- __asm volatile ("
- jsr a6@(-0x36)"
- : /* no output */
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- }
- __inline static ULONG CxObjType(BASE_PAR_DECL CxObj* co)
- {
- BASE_EXT_DECL
- register ULONG res __asm("d0");
- register void *a6 __asm ("a6");
- register CxObj* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = co;
- __asm volatile ("
- jsr a6@(-0x3c)"
- : "=g" (res)
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- __inline static LONG CxObjError(BASE_PAR_DECL CxObj* co)
- {
- BASE_EXT_DECL
- register LONG res __asm("d0");
- register void *a6 __asm ("a6");
- register CxObj* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = co;
- __asm volatile ("
- jsr a6@(-0x42)"
- : "=g" (res)
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- __inline static void ClearCxObjError(BASE_PAR_DECL CxObj* co)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register CxObj* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = co;
- __asm volatile ("
- jsr a6@(-0x48)"
- : /* no output */
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- }
- __inline static void SetCxObjPri(BASE_PAR_DECL CxObj* co, long int pri)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register CxObj* a0 __asm("a0");
- register long int d0 __asm("d0");
-
- a6 = BASE_NAME;
- a0 = co;
- d0 = pri;
- __asm volatile ("
- jsr a6@(-0x4e)"
- : /* no output */
- : "g" (a6), "g" (a0), "g" (d0)
- : "d0", "d1", "a0", "a1");
- }
- __inline static void AttachCxObj(BASE_PAR_DECL CxObj* headobj, CxObj* co)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register CxObj* a0 __asm("a0");
- register CxObj* a1 __asm("a1");
-
- a6 = BASE_NAME;
- a0 = headobj;
- a1 = co;
- __asm volatile ("
- jsr a6@(-0x54)"
- : /* no output */
- : "g" (a6), "g" (a0), "g" (a1)
- : "d0", "d1", "a0", "a1");
- }
- __inline static void EnqueueCxObj(BASE_PAR_DECL CxObj* headobj, CxObj* co)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register CxObj* a0 __asm("a0");
- register CxObj* a1 __asm("a1");
-
- a6 = BASE_NAME;
- a0 = headobj;
- a1 = co;
- __asm volatile ("
- jsr a6@(-0x5a)"
- : /* no output */
- : "g" (a6), "g" (a0), "g" (a1)
- : "d0", "d1", "a0", "a1");
- }
- __inline static void InsertCxObj(BASE_PAR_DECL CxObj* headobj, CxObj* co, CxObj* pred)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register CxObj* a0 __asm("a0");
- register CxObj* a1 __asm("a1");
- register CxObj* a2 __asm("a2");
-
- a6 = BASE_NAME;
- a0 = headobj;
- a1 = co;
- a2 = pred;
- __asm volatile ("
- jsr a6@(-0x60)"
- : /* no output */
- : "g" (a6), "g" (a0), "g" (a1), "g" (a2)
- : "d0", "d1", "a0", "a1", "a2");
- }
- __inline static void RemoveCxObj(BASE_PAR_DECL CxObj* co)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register CxObj* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = co;
- __asm volatile ("
- jsr a6@(-0x66)"
- : /* no output */
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- }
- #ifdef PRIVATE
- #endif
- __inline static void SetTranslate(BASE_PAR_DECL CxObj* translator, IX* events)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register CxObj* a0 __asm("a0");
- register IX* a1 __asm("a1");
-
- a6 = BASE_NAME;
- a0 = translator;
- a1 = events;
- __asm volatile ("
- jsr a6@(-0x72)"
- : /* no output */
- : "g" (a6), "g" (a0), "g" (a1)
- : "d0", "d1", "a0", "a1");
- }
- __inline static void SetFilter(BASE_PAR_DECL CxObj* filter, IX* text)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register CxObj* a0 __asm("a0");
- register IX* a1 __asm("a1");
-
- a6 = BASE_NAME;
- a0 = filter;
- a1 = text;
- __asm volatile ("
- jsr a6@(-0x78)"
- : /* no output */
- : "g" (a6), "g" (a0), "g" (a1)
- : "d0", "d1", "a0", "a1");
- }
- __inline static void SetFilterIX(BASE_PAR_DECL CxObj* filter, IX* ix)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register CxObj* a0 __asm("a0");
- register IX* a1 __asm("a1");
-
- a6 = BASE_NAME;
- a0 = filter;
- a1 = ix;
- __asm volatile ("
- jsr a6@(-0x7e)"
- : /* no output */
- : "g" (a6), "g" (a0), "g" (a1)
- : "d0", "d1", "a0", "a1");
- }
- __inline static LONG ParseIX(BASE_PAR_DECL UBYTE* description, IX* ix)
- {
- BASE_EXT_DECL
- register LONG res __asm("d0");
- register void *a6 __asm ("a6");
- register UBYTE* a0 __asm("a0");
- register IX* a1 __asm("a1");
-
- a6 = BASE_NAME;
- a0 = description;
- a1 = ix;
- __asm volatile ("
- jsr a6@(-0x84)"
- : "=g" (res)
- : "g" (a6), "g" (a0), "g" (a1)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- __inline static ULONG CxMsgType(BASE_PAR_DECL CxMsg* cxm)
- {
- BASE_EXT_DECL
- register ULONG res __asm("d0");
- register void *a6 __asm ("a6");
- register CxMsg* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = cxm;
- __asm volatile ("
- jsr a6@(-0x8a)"
- : "=g" (res)
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- __inline static UBYTE* CxMsgData(BASE_PAR_DECL CxMsg* cxm)
- {
- BASE_EXT_DECL
- register UBYTE* res __asm("d0");
- register void *a6 __asm ("a6");
- register CxMsg* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = cxm;
- __asm volatile ("
- jsr a6@(-0x90)"
- : "=g" (res)
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- __inline static LONG CxMsgID(BASE_PAR_DECL CxMsg* cxm)
- {
- BASE_EXT_DECL
- register LONG res __asm("d0");
- register void *a6 __asm ("a6");
- register CxMsg* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = cxm;
- __asm volatile ("
- jsr a6@(-0x96)"
- : "=g" (res)
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- __inline static void DivertCxMsg(BASE_PAR_DECL CxMsg* cxm, CxObj* headobj, CxObj* ret)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register CxMsg* a0 __asm("a0");
- register CxObj* a1 __asm("a1");
- register CxObj* a2 __asm("a2");
-
- a6 = BASE_NAME;
- a0 = cxm;
- a1 = headobj;
- a2 = ret;
- __asm volatile ("
- jsr a6@(-0x9c)"
- : /* no output */
- : "g" (a6), "g" (a0), "g" (a1), "g" (a2)
- : "d0", "d1", "a0", "a1", "a2");
- }
- __inline static void RouteCxMsg(BASE_PAR_DECL CxMsg* cxm, CxObj* co)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register CxMsg* a0 __asm("a0");
- register CxObj* a1 __asm("a1");
-
- a6 = BASE_NAME;
- a0 = cxm;
- a1 = co;
- __asm volatile ("
- jsr a6@(-0xa2)"
- : /* no output */
- : "g" (a6), "g" (a0), "g" (a1)
- : "d0", "d1", "a0", "a1");
- }
- __inline static void DisposeCxMsg(BASE_PAR_DECL CxMsg* cxm)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register CxMsg* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = cxm;
- __asm volatile ("
- jsr a6@(-0xa8)"
- : /* no output */
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- }
- __inline static ULONG InvertKeyMap(BASE_PAR_DECL long unsigned int ansicode, struct InputEvent* event, struct KeyMap* km)
- {
- BASE_EXT_DECL
- register ULONG res __asm("d0");
- register void *a6 __asm ("a6");
- register long unsigned int d0 __asm("d0");
- register struct InputEvent* a0 __asm("a0");
- register struct KeyMap* a1 __asm("a1");
-
- a6 = BASE_NAME;
- d0 = ansicode;
- a0 = event;
- a1 = km;
- __asm volatile ("
- jsr a6@(-0xae)"
- : "=g" (res)
- : "g" (a6), "g" (d0), "g" (a0), "g" (a1)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- __inline static void AddIEvents(BASE_PAR_DECL struct InputEvent* events)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register struct InputEvent* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = events;
- __asm volatile ("
- jsr a6@(-0xb4)"
- : /* no output */
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- }
- #ifdef PRIVATE
- #endif
- #undef BASE_EXT_DECL
- #undef BASE_PAR_DECL
- #undef BASE_PAR_DECL0
- #undef BASE_NAME
-