1 #ifndef _VBCCINLINE_XADMASTER_H
2 #define _VBCCINLINE_XADMASTER_H
5 #include <exec/types.h>
8 APTR
__xadAllocObjectA(__reg("a6") struct xadMasterBase
*, __reg("d0") LONG type
, __reg("a0") const struct TagItem
* tags
)="\tjsr\t-30(a6)";
9 #define xadAllocObjectA(type, tags) __xadAllocObjectA(xadMasterBase, (type), (tags))
11 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
12 APTR
__xadAllocObject(__reg("a6") struct xadMasterBase
*, __reg("d0") LONG type
, Tag tags
, ...)="\tmove.l\ta0,-(a7)\n\tlea\t4(a7),a0\n\tjsr\t-30(a6)\n\tmovea.l\t(a7)+,a0";
13 #define xadAllocObject(type, ...) __xadAllocObject(xadMasterBase, (type), __VA_ARGS__)
16 void __xadFreeObjectA(__reg("a6") struct xadMasterBase
*, __reg("a0") APTR object
, __reg("a1") const struct TagItem
* tags
)="\tjsr\t-36(a6)";
17 #define xadFreeObjectA(object, tags) __xadFreeObjectA(xadMasterBase, (object), (tags))
19 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
20 void __xadFreeObject(__reg("a6") struct xadMasterBase
*, __reg("a0") APTR object
, Tag tags
, ...)="\tmove.l\ta1,-(a7)\n\tlea\t4(a7),a1\n\tjsr\t-36(a6)\n\tmovea.l\t(a7)+,a1";
21 #define xadFreeObject(object, ...) __xadFreeObject(xadMasterBase, (object), __VA_ARGS__)
24 struct xadClient
* __xadRecogFileA(__reg("a6") struct xadMasterBase
*, __reg("d0") ULONG size
, __reg("a0") APTR memory
, __reg("a1") const struct TagItem
* tags
)="\tjsr\t-42(a6)";
25 #define xadRecogFileA(size, memory, tags) __xadRecogFileA(xadMasterBase, (size), (memory), (tags))
27 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
28 struct xadClient
* __xadRecogFile(__reg("a6") struct xadMasterBase
*, __reg("d0") ULONG size
, __reg("a0") APTR memory
, Tag tags
, ...)="\tmove.l\ta1,-(a7)\n\tlea\t4(a7),a1\n\tjsr\t-42(a6)\n\tmovea.l\t(a7)+,a1";
29 #define xadRecogFile(size, memory, ...) __xadRecogFile(xadMasterBase, (size), (memory), __VA_ARGS__)
32 LONG
__xadGetInfoA(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadArchiveInfo
* ai
, __reg("a1") const struct TagItem
* tags
)="\tjsr\t-48(a6)";
33 #define xadGetInfoA(ai, tags) __xadGetInfoA(xadMasterBase, (ai), (tags))
35 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
36 LONG
__xadGetInfo(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadArchiveInfo
* ai
, Tag tags
, ...)="\tmove.l\ta1,-(a7)\n\tlea\t4(a7),a1\n\tjsr\t-48(a6)\n\tmovea.l\t(a7)+,a1";
37 #define xadGetInfo(ai, ...) __xadGetInfo(xadMasterBase, (ai), __VA_ARGS__)
40 void __xadFreeInfo(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadArchiveInfo
* ai
)="\tjsr\t-54(a6)";
41 #define xadFreeInfo(ai) __xadFreeInfo(xadMasterBase, (ai))
43 LONG
__xadFileUnArcA(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadArchiveInfo
* ai
, __reg("a1") const struct TagItem
* tags
)="\tjsr\t-60(a6)";
44 #define xadFileUnArcA(ai, tags) __xadFileUnArcA(xadMasterBase, (ai), (tags))
46 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
47 LONG
__xadFileUnArc(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadArchiveInfo
* ai
, Tag tags
, ...)="\tmove.l\ta1,-(a7)\n\tlea\t4(a7),a1\n\tjsr\t-60(a6)\n\tmovea.l\t(a7)+,a1";
48 #define xadFileUnArc(ai, ...) __xadFileUnArc(xadMasterBase, (ai), __VA_ARGS__)
51 LONG
__xadDiskUnArcA(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadArchiveInfo
* ai
, __reg("a1") const struct TagItem
* tags
)="\tjsr\t-66(a6)";
52 #define xadDiskUnArcA(ai, tags) __xadDiskUnArcA(xadMasterBase, (ai), (tags))
54 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
55 LONG
__xadDiskUnArc(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadArchiveInfo
* ai
, Tag tags
, ...)="\tmove.l\ta1,-(a7)\n\tlea\t4(a7),a1\n\tjsr\t-66(a6)\n\tmovea.l\t(a7)+,a1";
56 #define xadDiskUnArc(ai, ...) __xadDiskUnArc(xadMasterBase, (ai), __VA_ARGS__)
59 STRPTR
__xadGetErrorText(__reg("a6") struct xadMasterBase
*, __reg("d0") ULONG errnum
)="\tjsr\t-72(a6)";
60 #define xadGetErrorText(errnum) __xadGetErrorText(xadMasterBase, (errnum))
62 struct xadClient
* __xadGetClientInfo(__reg("a6") struct xadMasterBase
*)="\tjsr\t-78(a6)";
63 #define xadGetClientInfo() __xadGetClientInfo(xadMasterBase)
65 LONG
__xadHookAccess(__reg("a6") struct xadMasterBase
*, __reg("d0") ULONG command
, __reg("d1") LONG data
, __reg("a0") APTR buffer
, __reg("a1") struct xadArchiveInfo
* ai
)="\tjsr\t-84(a6)";
66 #define xadHookAccess(command, data, buffer, ai) __xadHookAccess(xadMasterBase, (command), (data), (buffer), (ai))
68 LONG
__xadConvertDatesA(__reg("a6") struct xadMasterBase
*, __reg("a0") const struct TagItem
* tags
)="\tjsr\t-90(a6)";
69 #define xadConvertDatesA(tags) __xadConvertDatesA(xadMasterBase, (tags))
71 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
72 LONG
__xadConvertDates(__reg("a6") struct xadMasterBase
*, Tag tags
, ...)="\tmove.l\ta0,-(a7)\n\tlea\t4(a7),a0\n\tjsr\t-90(a6)\n\tmovea.l\t(a7)+,a0";
73 #define xadConvertDates(...) __xadConvertDates(xadMasterBase, __VA_ARGS__)
76 UWORD
__xadCalcCRC16(__reg("a6") struct xadMasterBase
*, __reg("d0") ULONG id
, __reg("d1") ULONG init
, __reg("d2") ULONG size
, __reg("a0") STRPTR buffer
)="\tjsr\t-96(a6)";
77 #define xadCalcCRC16(id, init, size, buffer) __xadCalcCRC16(xadMasterBase, (id), (init), (size), (buffer))
79 ULONG
__xadCalcCRC32(__reg("a6") struct xadMasterBase
*, __reg("d0") ULONG id
, __reg("d1") ULONG init
, __reg("d2") ULONG size
, __reg("a0") STRPTR buffer
)="\tjsr\t-102(a6)";
80 #define xadCalcCRC32(id, init, size, buffer) __xadCalcCRC32(xadMasterBase, (id), (init), (size), (buffer))
82 APTR
__xadAllocVec(__reg("a6") struct xadMasterBase
*, __reg("d0") ULONG size
, __reg("d1") ULONG flags
)="\tjsr\t-108(a6)";
83 #define xadAllocVec(size, flags) __xadAllocVec(xadMasterBase, (size), (flags))
85 void __xadCopyMem(__reg("a6") struct xadMasterBase
*, __reg("a0") const void * src
, __reg("a1") APTR dest
, __reg("d0") ULONG size
)="\tjsr\t-114(a6)";
86 #define xadCopyMem(src, dest, size) __xadCopyMem(xadMasterBase, (src), (dest), (size))
88 LONG
__xadHookTagAccessA(__reg("a6") struct xadMasterBase
*, __reg("d0") ULONG command
, __reg("d1") LONG data
, __reg("a0") APTR buffer
, __reg("a1") struct xadArchiveInfo
* ai
, __reg("a2") const struct TagItem
* tags
)="\tjsr\t-120(a6)";
89 #define xadHookTagAccessA(command, data, buffer, ai, tags) __xadHookTagAccessA(xadMasterBase, (command), (data), (buffer), (ai), (tags))
91 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
92 LONG
__xadHookTagAccess(__reg("a6") struct xadMasterBase
*, __reg("d0") ULONG command
, __reg("d1") LONG data
, __reg("a0") APTR buffer
, __reg("a1") struct xadArchiveInfo
* ai
, Tag tags
, ...)="\tmove.l\ta2,-(a7)\n\tlea\t4(a7),a2\n\tjsr\t-120(a6)\n\tmovea.l\t(a7)+,a2";
93 #define xadHookTagAccess(command, data, buffer, ai, ...) __xadHookTagAccess(xadMasterBase, (command), (data), (buffer), (ai), __VA_ARGS__)
96 LONG
__xadConvertProtectionA(__reg("a6") struct xadMasterBase
*, __reg("a0") const struct TagItem
* tags
)="\tjsr\t-126(a6)";
97 #define xadConvertProtectionA(tags) __xadConvertProtectionA(xadMasterBase, (tags))
99 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
100 LONG
__xadConvertProtection(__reg("a6") struct xadMasterBase
*, Tag tags
, ...)="\tmove.l\ta0,-(a7)\n\tlea\t4(a7),a0\n\tjsr\t-126(a6)\n\tmovea.l\t(a7)+,a0";
101 #define xadConvertProtection(...) __xadConvertProtection(xadMasterBase, __VA_ARGS__)
104 LONG
__xadGetDiskInfoA(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadArchiveInfo
* ai
, __reg("a1") const struct TagItem
* tags
)="\tjsr\t-132(a6)";
105 #define xadGetDiskInfoA(ai, tags) __xadGetDiskInfoA(xadMasterBase, (ai), (tags))
107 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
108 LONG
__xadGetDiskInfo(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadArchiveInfo
* ai
, Tag tags
, ...)="\tmove.l\ta1,-(a7)\n\tlea\t4(a7),a1\n\tjsr\t-132(a6)\n\tmovea.l\t(a7)+,a1";
109 #define xadGetDiskInfo(ai, ...) __xadGetDiskInfo(xadMasterBase, (ai), __VA_ARGS__)
112 LONG
__xadDiskFileUnArcA(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadArchiveInfo
* ai
, __reg("a1") const struct TagItem
* tags
)="\tjsr\t-138(a6)";
113 #define xadDiskFileUnArcA(ai, tags) __xadDiskFileUnArcA(xadMasterBase, (ai), (tags))
115 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
116 LONG
__xadDiskFileUnArc(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadArchiveInfo
* ai
, Tag tags
, ...)="\tmove.l\ta1,-(a7)\n\tlea\t4(a7),a1\n\tjsr\t-138(a6)\n\tmovea.l\t(a7)+,a1";
117 #define xadDiskFileUnArc(ai, ...) __xadDiskFileUnArc(xadMasterBase, (ai), __VA_ARGS__)
120 LONG
__xadGetHookAccessA(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadArchiveInfo
* ai
, __reg("a1") const struct TagItem
* tags
)="\tjsr\t-144(a6)";
121 #define xadGetHookAccessA(ai, tags) __xadGetHookAccessA(xadMasterBase, (ai), (tags))
123 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
124 LONG
__xadGetHookAccess(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadArchiveInfo
* ai
, Tag tags
, ...)="\tmove.l\ta1,-(a7)\n\tlea\t4(a7),a1\n\tjsr\t-144(a6)\n\tmovea.l\t(a7)+,a1";
125 #define xadGetHookAccess(ai, ...) __xadGetHookAccess(xadMasterBase, (ai), __VA_ARGS__)
128 LONG
__xadFreeHookAccessA(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadArchiveInfo
* ai
, __reg("a1") const struct TagItem
* tags
)="\tjsr\t-150(a6)";
129 #define xadFreeHookAccessA(ai, tags) __xadFreeHookAccessA(xadMasterBase, (ai), (tags))
131 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
132 LONG
__xadFreeHookAccess(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadArchiveInfo
* ai
, Tag tags
, ...)="\tmove.l\ta1,-(a7)\n\tlea\t4(a7),a1\n\tjsr\t-150(a6)\n\tmovea.l\t(a7)+,a1";
133 #define xadFreeHookAccess(ai, ...) __xadFreeHookAccess(xadMasterBase, (ai), __VA_ARGS__)
136 LONG
__xadAddFileEntryA(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadFileInfo
* fi
, __reg("a1") struct xadArchiveInfo
* ai
, __reg("a2") const struct TagItem
* tags
)="\tjsr\t-156(a6)";
137 #define xadAddFileEntryA(fi, ai, tags) __xadAddFileEntryA(xadMasterBase, (fi), (ai), (tags))
139 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
140 LONG
__xadAddFileEntry(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadFileInfo
* fi
, __reg("a1") struct xadArchiveInfo
* ai
, Tag tags
, ...)="\tmove.l\ta2,-(a7)\n\tlea\t4(a7),a2\n\tjsr\t-156(a6)\n\tmovea.l\t(a7)+,a2";
141 #define xadAddFileEntry(fi, ai, ...) __xadAddFileEntry(xadMasterBase, (fi), (ai), __VA_ARGS__)
144 LONG
__xadAddDiskEntryA(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadDiskInfo
* di
, __reg("a1") struct xadArchiveInfo
* ai
, __reg("a2") const struct TagItem
* tags
)="\tjsr\t-162(a6)";
145 #define xadAddDiskEntryA(di, ai, tags) __xadAddDiskEntryA(xadMasterBase, (di), (ai), (tags))
147 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
148 LONG
__xadAddDiskEntry(__reg("a6") struct xadMasterBase
*, __reg("a0") struct xadDiskInfo
* di
, __reg("a1") struct xadArchiveInfo
* ai
, Tag tags
, ...)="\tmove.l\ta2,-(a7)\n\tlea\t4(a7),a2\n\tjsr\t-162(a6)\n\tmovea.l\t(a7)+,a2";
149 #define xadAddDiskEntry(di, ai, ...) __xadAddDiskEntry(xadMasterBase, (di), (ai), __VA_ARGS__)
152 LONG
__xadGetFilenameA(__reg("a6") struct xadMasterBase
*, __reg("d0") ULONG buffersize
, __reg("a0") STRPTR buffer
, __reg("a1") STRPTR path
, __reg("a2") STRPTR name
, __reg("a3") const struct TagItem
* tags
)="\tjsr\t-168(a6)";
153 #define xadGetFilenameA(buffersize, buffer, path, name, tags) __xadGetFilenameA(xadMasterBase, (buffersize), (buffer), (path), (name), (tags))
155 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
156 LONG
__xadGetFilename(__reg("a6") struct xadMasterBase
*, __reg("d0") ULONG buffersize
, __reg("a0") STRPTR buffer
, __reg("a1") STRPTR path
, __reg("a2") STRPTR name
, Tag tags
, ...)="\tmove.l\ta3,-(a7)\n\tlea\t4(a7),a3\n\tjsr\t-168(a6)\n\tmovea.l\t(a7)+,a3";
157 #define xadGetFilename(buffersize, buffer, path, name, ...) __xadGetFilename(xadMasterBase, (buffersize), (buffer), (path), (name), __VA_ARGS__)
160 STRPTR
__xadConvertNameA(__reg("a6") struct xadMasterBase
*, __reg("d0") ULONG charset
, __reg("a0") const struct TagItem
* tags
)="\tjsr\t-174(a6)";
161 #define xadConvertNameA(charset, tags) __xadConvertNameA(xadMasterBase, (charset), (tags))
163 #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
164 STRPTR
__xadConvertName(__reg("a6") struct xadMasterBase
*, __reg("d0") ULONG charset
, Tag tags
, ...)="\tmove.l\ta0,-(a7)\n\tlea\t4(a7),a0\n\tjsr\t-174(a6)\n\tmovea.l\t(a7)+,a0";
165 #define xadConvertName(charset, ...) __xadConvertName(xadMasterBase, (charset), __VA_ARGS__)
168 #endif /* _VBCCINLINE_XADMASTER_H */