home *** CD-ROM | disk | FTP | other *** search
- #include <inline/stub.h>
- #ifndef BASE_EXT_DECL
- #define BASE_EXT_DECL extern struct AslBase * AslBase;
- #endif
- #ifndef BASE_PAR_DECL
- #define BASE_PAR_DECL
- #define BASE_PAR_DECL0 void
- #endif
- #ifndef BASE_NAME
- #define BASE_NAME AslBase
- #endif
- __inline static struct FileRequester* AllocFileRequest(BASE_PAR_DECL0)
- {
- BASE_EXT_DECL
- register struct FileRequester* res __asm("d0");
- register void *a6 __asm ("a6");
- a6 = BASE_NAME;
- __asm volatile ("
- jsr a6@(-0x1e)"
- : "=g" (res)
- : "g" (a6)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- __inline static void FreeFileRequest(BASE_PAR_DECL struct FileRequester* fileReq)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register struct FileRequester* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = fileReq;
- __asm volatile ("
- jsr a6@(-0x24)"
- : /* no output */
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- }
- __inline static BOOL RequestFile(BASE_PAR_DECL struct FileRequester* fileReq)
- {
- BASE_EXT_DECL
- register BOOL res __asm("d0");
- register void *a6 __asm ("a6");
- register struct FileRequester* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = fileReq;
- __asm volatile ("
- jsr a6@(-0x2a)"
- : "=g" (res)
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- __inline static APTR AllocAslRequest(BASE_PAR_DECL long unsigned int type, struct TagItem* tagList)
- {
- BASE_EXT_DECL
- register APTR res __asm("d0");
- register void *a6 __asm ("a6");
- register long unsigned int d0 __asm("d0");
- register struct TagItem* a0 __asm("a0");
-
- a6 = BASE_NAME;
- d0 = type;
- a0 = tagList;
- __asm volatile ("
- jsr a6@(-0x30)"
- : "=g" (res)
- : "g" (a6), "g" (d0), "g" (a0)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- __inline static void FreeAslRequest(BASE_PAR_DECL APTR request)
- {
- BASE_EXT_DECL
- register void *a6 __asm ("a6");
- register APTR a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = request;
- __asm volatile ("
- jsr a6@(-0x36)"
- : /* no output */
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- }
- __inline static BOOL AslRequest(BASE_PAR_DECL APTR request, struct TagItem* tagList)
- {
- BASE_EXT_DECL
- register BOOL res __asm("d0");
- register void *a6 __asm ("a6");
- register APTR a0 __asm("a0");
- register struct TagItem* a1 __asm("a1");
-
- a6 = BASE_NAME;
- a0 = request;
- a1 = tagList;
- __asm volatile ("
- jsr a6@(-0x3c)"
- : "=g" (res)
- : "g" (a6), "g" (a0), "g" (a1)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- #undef BASE_EXT_DECL
- #undef BASE_PAR_DECL
- #undef BASE_PAR_DECL0
- #undef BASE_NAME
-