BB2 C port
API reference: Blitz libraries in C and the shared code
Loading...
Searching...
No Matches
blitzlib.h File Reference
#include <exec/types.h>
#include <exec/memory.h>
#include <libnums.h>
#include "blitzhelp.h"

Go to the source code of this file.

Data Structures

struct  bl_regs

Macros

#define BL_BYTE   1
#define BL_WORD   2
#define BL_LONG   3
#define BL_QUICK   4
#define BL_FLOAT   5 /* Motorola FFP, not IEEE */
#define BL_STRING   7
#define BL_USESIZE   0
#define BL_UNKNOWN   8
#define BL_ARRAYEND   16
#define BL_ARRAY   32
#define BL_PUSH   64
#define BL_VARPTR   128
#define BL_WORDRET   (-1)
#define BL_NORET   0
#define BL_LONGRET   1
#define BL_LD(n)
#define BL_LA(n)
#define BL_LPUSH   0xff00 /* #lpush: onto the stack */
#define BL_BASE   1 /* #base: item 0 of the objects */
#define BL_USED   2 /* #used: current object */
#define BL_MAX   3 /* #max: maximum setting */
#define BL_USEDOFF   4 /* a5 offset of the used object */
#define BL_ITEM   0x80 /* #item: object from param dN */
#define BL_PD(n)
#define BL_IFBLITZ   0x8000 /* only in Blitz mode */
#define BL_IFAMIGA   0x4000 /* only in Amiga mode */
#define BL_LD0   0x0000 /* #ld0..#ld7: L = Library variable into dN */
#define BL_LD1   0x0100
#define BL_LD2   0x0200
#define BL_LD3   0x0300
#define BL_LD4   0x0400
#define BL_LD5   0x0500
#define BL_LD6   0x0600
#define BL_LD7   0x0700
#define BL_LA0   0x1000 /* #la0..#la3, #la6: L = Library variable into aN */
#define BL_LA1   0x1100
#define BL_LA2   0x1200
#define BL_LA3   0x1300
#define BL_LA6   0x1600
#define BL_UD0   (BL_LD0 | BL_USED) /* #ud*, #ua*: U = Used object (LIBFIN7) */
#define BL_UD1   (BL_LD1 | BL_USED)
#define BL_UD2   (BL_LD2 | BL_USED)
#define BL_UD3   (BL_LD3 | BL_USED)
#define BL_UD4   (BL_LD4 | BL_USED)
#define BL_UD5   (BL_LD5 | BL_USED)
#define BL_UD6   (BL_LD6 | BL_USED)
#define BL_UD7   (BL_LD7 | BL_USED)
#define BL_UA0   (BL_LA0 | BL_USED)
#define BL_UA1   (BL_LA1 | BL_USED)
#define BL_UA2   (BL_LA2 | BL_USED)
#define BL_UA3   (BL_LA3 | BL_USED)
#define BL_UA6   (BL_LA6 | BL_USED)
#define BL_BD0   (BL_LD0 | BL_BASE) /* #bd*, #ba*: B = Base, object 0 (LIBFIN7) */
#define BL_BD1   (BL_LD1 | BL_BASE)
#define BL_BD2   (BL_LD2 | BL_BASE)
#define BL_BD3   (BL_LD3 | BL_BASE)
#define BL_BD4   (BL_LD4 | BL_BASE)
#define BL_BD5   (BL_LD5 | BL_BASE)
#define BL_BD6   (BL_LD6 | BL_BASE)
#define BL_BD7   (BL_LD7 | BL_BASE)
#define BL_BA0   (BL_LA0 | BL_BASE)
#define BL_BA1   (BL_LA1 | BL_BASE)
#define BL_BA2   (BL_LA2 | BL_BASE)
#define BL_BA3   (BL_LA3 | BL_BASE)
#define BL_BA6   (BL_LA6 | BL_BASE)
#define BL_PD0   0 /* #pd0..#pd7: PD = Parameter in dN, the number of I */
#define BL_PD1   1
#define BL_PD2   2
#define BL_PD3   3
#define BL_PD4   4
#define BL_PD5   5
#define BL_PD6   6
#define BL_PD7   7
#define BL_IA0   (BL_LA0 | BL_ITEM) /* #ia*: I = Item, object number dN (| BL_PDn) */
#define BL_IA1   (BL_LA1 | BL_ITEM)
#define BL_IA2   (BL_LA2 | BL_ITEM)
#define BL_IA3   (BL_LA3 | BL_ITEM)
#define BL_IA6   (BL_LA6 | BL_ITEM)
#define BL_MD0   (BL_LD0 | BL_MAX) /* #md*, #ma*: M = Max setting (LIBFIN7) */
#define BL_MD1   (BL_LD1 | BL_MAX)
#define BL_MD2   (BL_LD2 | BL_MAX)
#define BL_MD3   (BL_LD3 | BL_MAX)
#define BL_MD4   (BL_LD4 | BL_MAX)
#define BL_MD5   (BL_LD5 | BL_MAX)
#define BL_MD6   (BL_LD6 | BL_MAX)
#define BL_MD7   (BL_LD7 | BL_MAX)
#define BL_MA0   (BL_LA0 | BL_MAX)
#define BL_MA1   (BL_LA1 | BL_MAX)
#define BL_MA2   (BL_LA2 | BL_MAX)
#define BL_MA3   (BL_LA3 | BL_MAX)
#define BL_MA6   (BL_LA6 | BL_MAX)
#define BL_REG(r)
#define BL_CAT_(a, b)
#define BL_CAT(a, b)
#define BL_ID(p)
#define BL_NARGS(...)
#define BL_NARGS_(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, n, ...)
#define BL_HEAD   __attribute__((section(".blitzlib.head"), used, aligned(2)))
#define BL_PACKED   __attribute__((packed, aligned(2)))
#define BL_A(x)
#define BLITZ_ERRCHK   __attribute__((section(".blitzlib.errchk"), used))
#define BLITZ_ERROR_AREA   blitz_errchk_start
#define BLITZ_ROUTINE   __attribute__((used))
#define BLITZ_SYSLIBHEADER(libnum, first, last, init, ret, finit, error, flags)
#define BLITZ_SYSLIBHEADER7(libnum, first, last, init, ret, finit, error)
#define BLITZ_LIBHEADER(libnum, init, ret, finit, error)
#define BL_KIND(v)
#define BLITZ_ASTATEMENT()
#define BLITZ_USTATEMENT()
#define BLITZ_AFUNCTION(t)
#define BLITZ_UFUNCTION()
#define BLITZ_ACOMMAND(t)
#define BLITZ_ARGS(...)
#define BLITZ_ARGS0()
#define BLITZ_REPARGS(first, num, ...)
#define BLITZ_LIBS(...)
#define BLITZ_LIBS0()
#define BLITZ_SUBS(code, err1, err2)
#define BLITZ_NAME(name, help)
#define BLITZ_NAME_AT(label, name, help)
#define BLITZ_NULLSUB(code, err1, ...)
#define BL_FIRST(a, ...)
#define BL_NULLSUB_LIBS(err2, ...)
#define BLITZ_DUMTOKE(label, name, help)
#define BLITZ_LIBFIN()
#define BLITZ_LIBFIN7(toke, load, save, use, free, defmax, shift)
#define BLITZ_OSLIBHEADER(libnum, init, ret, finit)
#define BL_OSR_d0   0x00
#define BL_OSR_d1   0x01
#define BL_OSR_d2   0x02
#define BL_OSR_d3   0x03
#define BL_OSR_d4   0x04
#define BL_OSR_d5   0x05
#define BL_OSR_d6   0x06
#define BL_OSR_d7   0x07
#define BL_OSR_a0   0x10
#define BL_OSR_a1   0x11
#define BL_OSR_a2   0x12
#define BL_OSR_a3   0x13
#define BL_OSR_a4   0x14
#define BL_OSR_a5   0x15
#define BL_OSR_a6   0x16
#define BL_OSR_a7   0x17
#define BL_OSREGS(...)
#define BL_OSR_N1(r)
#define BL_OSR_N2(r, ...)
#define BL_OSR_N3(r, ...)
#define BL_OSR_N4(r, ...)
#define BL_OSR_N5(r, ...)
#define BL_OSR_N6(r, ...)
#define BL_OSR_N7(r, ...)
#define BL_OSR_N8(r, ...)
#define BL_OSR_N9(r, ...)
#define BL_OSR_N10(r, ...)
#define BL_OSR_N11(r, ...)
#define BL_OSR_N12(r, ...)
#define BL_OSR_N13(r, ...)
#define BL_OSR_N14(r, ...)
#define BL_OSR_N15(r, ...)
#define BL_OSR_N16(r, ...)
#define BL_OSR_N17(r, ...)
#define BL_OSR_N18(r, ...)
#define BL_OSR_N19(r, ...)
#define BL_NOSREGS(...)
#define BLITZ_OSCALL(oslib, lvo, name, help, ...)
#define BLITZ_ENTRY_DECL(label)
#define BLITZ_ENTRY_C(f)
#define BLITZ_AMIGAONLY(code)
#define BLITZ_BLITZONLY   ((void *)1)
#define BLITZ_BLITZONLY_CHK(chk)
#define BLITZ_NULLSUB_AT(label, code, err1, ...)
#define BL_TOKVAL(tok, form)
#define BL_BTOKVAL(tok, form)
#define BLITZ_TOKE(tok)
#define BL_STR_(x)
#define BL_STR(x)
#define BL_ASMTOK(lib, n)
#define BL_A3_   "+a"(blitz_string)
#define BLITZ_ALIBJSR(tok, r)
#define BLITZ_ALIBJSR_FORM(tok, form, r)
#define BLITZ_BLIBJSR(tok, r)
#define BL_JSR_(val, r)
#define BLITZ_BASEJSR(base, off, r)
#define BLITZ_SYSJSR(base, off, r)
#define BLITZ_SYSJSR1(base, off, x0)
#define BLITZ_SYSJSR2(base, off, x0, x1)
#define BLITZ_ALIBJSR_A6(tok, base, x)
#define BLITZ_ALIBJSR_A2A6(tok, x, a2v, a6v)
#define BLITZ_ALIBJSR_CCR(tok, r, cc)
#define BLITZ_ALIBJSR_CCR_D0A0(tok, cc, d0p, a0v)
#define BL_JSR_D4_(val, x0, x1, x2, x3)
#define BLITZ_ALIBJSR_D4(tok, x0, x1, x2, x3)
#define BLITZ_BLIBJSR_D4(tok, x0, x1, x2, x3)
#define BL_NOIPA_   __attribute__((noipa))
#define BL_ASM_FUNC_(attrs, name, text)
#define BLITZ_THUNK(entry, cfunc, save)
#define BLITZ_ALIAS(entry, cfunc)
#define BLITZ_ENTRYPOINT   __entrypoint __attribute__((no_icf))
#define BLITZ_ALIAS_EP(entry, cfunc)
#define BLITZ_EP_MARK(cfunc)
#define BLITZ_EP_KEEP_A6()
#define BLITZ_EP_KEEP_A6_END()
#define BLITZ_THUNK_Z(entry, cfunc, save)
#define BLITZ_THUNK_PRE(entry, cfunc, save, pre)
#define BLITZ_THUNK_POST(entry, cfunc, save, post)
#define BL_THUNK_(entry, cfunc, save, pre, tail)
#define BLITZ_THUNK_POP(entry, cfunc, save, pre, tail, pop)
#define BLITZ_ERRCHK_THUNK(entry, cfunc, save)
#define BLITZ_ERRCHK_MESSAGE(label, text)
#define BLITZ_ERRCHK_AB(entry, blitz, amiga)
#define BLITZ_ERRCHK_ASM(name, text)
#define BLITZ_ASM_ROUTINE(entry, text)
#define BLITZ_ASM_BLOCK(name, text)
#define BLITZ_INLINE(entry, text)
#define BLITZ_AB_ROUTINE(entry, blitzentry, text)
#define BLITZ_RUNERR(msg)

Typedefs

typedef void * bl_addr

Enumerations

enum  BB_BOOL : ULONG { BB_FALSE = 0 , BB_TRUE = 0xffffffffUL }

Variables

register UBYTE * blitz_globals
register UBYTE * blitz_locals
register UBYTE * blitz_string
char blitz_errchk_start []
char blitz_tok []

Macro Definition Documentation

◆ BL_A

#define BL_A ( x)
Value:
((bl_addr)(x))
ULONG x
Definition 2dlib.c:2491
void * bl_addr
Definition blitzlib.h:302

◆ BL_A3_

#define BL_A3_   "+a"(blitz_string)

◆ BL_ARRAY

#define BL_ARRAY   32

◆ BL_ARRAYEND

#define BL_ARRAYEND   16

◆ BL_ASM_FUNC_

#define BL_ASM_FUNC_ ( attrs,
name,
text )
Value:
attrs BL_NOIPA_ void name(void) \
{ \
__asm volatile(text); \
__builtin_unreachable(); \
}
char * name
Definition asllib.c:150
#define BL_NOIPA_
Definition blitzlib.h:779
Definition basictest_read.c:318

◆ BL_ASMTOK

#define BL_ASMTOK ( lib,
n )
Value:
"0x80000000+((" BL_STR(lib) "<<7)+" BL_STR(n) ")"
ULONG WORD UWORD UWORD border ULONG ULONG struct bb_bitmap *dst void UWORD n
Definition 2dlib.c:2498
#define BL_STR(x)
Definition blitzlib.h:533

◆ BL_BA0

#define BL_BA0   (BL_LA0 | BL_BASE)

◆ BL_BA1

#define BL_BA1   (BL_LA1 | BL_BASE)

◆ BL_BA2

#define BL_BA2   (BL_LA2 | BL_BASE)

◆ BL_BA3

#define BL_BA3   (BL_LA3 | BL_BASE)

◆ BL_BA6

#define BL_BA6   (BL_LA6 | BL_BASE)

◆ BL_BASE

#define BL_BASE   1 /* #base: item 0 of the objects */

◆ BL_BD0

#define BL_BD0   (BL_LD0 | BL_BASE) /* #bd*, #ba*: B = Base, object 0 (LIBFIN7) */

◆ BL_BD1

#define BL_BD1   (BL_LD1 | BL_BASE)

◆ BL_BD2

#define BL_BD2   (BL_LD2 | BL_BASE)

◆ BL_BD3

#define BL_BD3   (BL_LD3 | BL_BASE)

◆ BL_BD4

#define BL_BD4   (BL_LD4 | BL_BASE)

◆ BL_BD5

#define BL_BD5   (BL_LD5 | BL_BASE)

◆ BL_BD6

#define BL_BD6   (BL_LD6 | BL_BASE)

◆ BL_BD7

#define BL_BD7   (BL_LD7 | BL_BASE)

◆ BL_BTOKVAL

#define BL_BTOKVAL ( tok,
form )
Value:
(0xC0000000UL | ((ULONG)(form) << 16) | (UWORD)(tok))
Definition ribbmaplib.c:191

◆ BL_BYTE

#define BL_BYTE   1

◆ BL_CAT

#define BL_CAT ( a,
b )
Value:
BL_CAT_(a, b)
#define BL_CAT_(a, b)
Definition blitzlib.h:287

◆ BL_CAT_

#define BL_CAT_ ( a,
b )
Value:
a##b

◆ BL_FIRST

#define BL_FIRST ( a,
... )
Value:
a

◆ BL_FLOAT

#define BL_FLOAT   5 /* Motorola FFP, not IEEE */

◆ BL_HEAD

#define BL_HEAD   __attribute__((section(".blitzlib.head"), used, aligned(2)))

◆ BL_IA0

#define BL_IA0   (BL_LA0 | BL_ITEM) /* #ia*: I = Item, object number dN (| BL_PDn) */

◆ BL_IA1

#define BL_IA1   (BL_LA1 | BL_ITEM)

◆ BL_IA2

#define BL_IA2   (BL_LA2 | BL_ITEM)

◆ BL_IA3

#define BL_IA3   (BL_LA3 | BL_ITEM)

◆ BL_IA6

#define BL_IA6   (BL_LA6 | BL_ITEM)

◆ BL_ID

#define BL_ID ( p)
Value:
BL_CAT(p, __COUNTER__)
#define BL_CAT(a, b)
Definition blitzlib.h:288

◆ BL_IFAMIGA

#define BL_IFAMIGA   0x4000 /* only in Amiga mode */

◆ BL_IFBLITZ

#define BL_IFBLITZ   0x8000 /* only in Blitz mode */

◆ BL_ITEM

#define BL_ITEM   0x80 /* #item: object from param dN */

◆ BL_JSR_

#define BL_JSR_ ( val,
r )
Value:
({ \
register ULONG _d0 __asm("d0") = (r).d0; \
register ULONG _d1 __asm("d1") = (r).d1; \
register ULONG _a0 __asm("a0") = (r).a0; \
register ULONG _a1 __asm("a1") = (r).a1; \
__asm volatile("jsr _blitz_tok+%c5" \
: "+d"(_d0), "+d"(_d1), "+a"(_a0), "+a"(_a1), BL_A3_ : "i"(val) \
: "d2", "d3", "d4", "d5", "d6", "d7", "a2", "a6", "cc", "memory"); \
(r).d0 = _d0; (r).d1 = _d1; (r).a0 = _a0; (r).a1 = _a1; _d0; })
#define BL_A3_
Definition blitzlib.h:553

◆ BL_JSR_D4_

#define BL_JSR_D4_ ( val,
x0,
x1,
x2,
x3 )
Value:
({ \
register ULONG _d0 __asm("d0") = (x0); \
register ULONG _d1 __asm("d1") = (x1); \
register ULONG _d2 __asm("d2") = (x2); \
register ULONG _d3 __asm("d3") = (x3); \
__asm volatile("jsr _blitz_tok+%c5" \
: "+d"(_d0), "+d"(_d1), "+d"(_d2), "+d"(_d3), BL_A3_ : "i"(val) \
: "d4", "d5", "d6", "d7", "a0", "a1", "a2", "a6", "cc", "memory"); \
_d0; })

◆ BL_KIND

#define BL_KIND ( v)
Value:
static const UWORD BL_ID(bl_kind_)[3] BL_HEAD = { (v), 0, 0 }
#define BL_HEAD
Definition blitzlib.h:298
#define BL_ID(p)
Definition blitzlib.h:289
static struct @342026374002303043102303243063125232020331002053 v

◆ BL_LA

#define BL_LA ( n)
Value:
(0x1000 | ((n) << 8)) /* #la0..#la3, #la6 */

◆ BL_LA0

#define BL_LA0   0x1000 /* #la0..#la3, #la6: L = Library variable into aN */

◆ BL_LA1

#define BL_LA1   0x1100

◆ BL_LA2

#define BL_LA2   0x1200

◆ BL_LA3

#define BL_LA3   0x1300

◆ BL_LA6

#define BL_LA6   0x1600

◆ BL_LD

#define BL_LD ( n)
Value:
((n) << 8) /* #ld0..#ld7 */

◆ BL_LD0

#define BL_LD0   0x0000 /* #ld0..#ld7: L = Library variable into dN */

◆ BL_LD1

#define BL_LD1   0x0100

◆ BL_LD2

#define BL_LD2   0x0200

◆ BL_LD3

#define BL_LD3   0x0300

◆ BL_LD4

#define BL_LD4   0x0400

◆ BL_LD5

#define BL_LD5   0x0500

◆ BL_LD6

#define BL_LD6   0x0600

◆ BL_LD7

#define BL_LD7   0x0700

◆ BL_LONG

#define BL_LONG   3

◆ BL_LONGRET

#define BL_LONGRET   1

◆ BL_LPUSH

#define BL_LPUSH   0xff00 /* #lpush: onto the stack */

◆ BL_MA0

#define BL_MA0   (BL_LA0 | BL_MAX)

◆ BL_MA1

#define BL_MA1   (BL_LA1 | BL_MAX)

◆ BL_MA2

#define BL_MA2   (BL_LA2 | BL_MAX)

◆ BL_MA3

#define BL_MA3   (BL_LA3 | BL_MAX)

◆ BL_MA6

#define BL_MA6   (BL_LA6 | BL_MAX)

◆ BL_MAX

#define BL_MAX   3 /* #max: maximum setting */

◆ BL_MD0

#define BL_MD0   (BL_LD0 | BL_MAX) /* #md*, #ma*: M = Max setting (LIBFIN7) */

◆ BL_MD1

#define BL_MD1   (BL_LD1 | BL_MAX)

◆ BL_MD2

#define BL_MD2   (BL_LD2 | BL_MAX)

◆ BL_MD3

#define BL_MD3   (BL_LD3 | BL_MAX)

◆ BL_MD4

#define BL_MD4   (BL_LD4 | BL_MAX)

◆ BL_MD5

#define BL_MD5   (BL_LD5 | BL_MAX)

◆ BL_MD6

#define BL_MD6   (BL_LD6 | BL_MAX)

◆ BL_MD7

#define BL_MD7   (BL_LD7 | BL_MAX)

◆ BL_NARGS

#define BL_NARGS ( ...)
Value:
BL_NARGS_(__VA_ARGS__, 20, 19, 18, 17, 16, 15, 14, 13, \
12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0)
#define BL_NARGS_(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, n,...)
Definition blitzlib.h:293

◆ BL_NARGS_

#define BL_NARGS_ ( a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
a15,
a16,
a17,
a18,
a19,
a20,
n,
... )
Value:

◆ BL_NOIPA_

#define BL_NOIPA_   __attribute__((noipa))

◆ BL_NORET

#define BL_NORET   0

◆ BL_NOSREGS

#define BL_NOSREGS ( ...)
Value:
(0 __VA_OPT__(+ BL_NARGS(__VA_ARGS__)))
#define BL_NARGS(...)
Definition blitzlib.h:291

◆ BL_NULLSUB_LIBS

#define BL_NULLSUB_LIBS ( err2,
... )
Value:
static const UWORD BL_ID(bl_libs_)[] BL_HEAD = { __VA_ARGS__ __VA_OPT__(,) 0 }

◆ BL_OSR_a0

#define BL_OSR_a0   0x10

◆ BL_OSR_a1

#define BL_OSR_a1   0x11

◆ BL_OSR_a2

#define BL_OSR_a2   0x12

◆ BL_OSR_a3

#define BL_OSR_a3   0x13

◆ BL_OSR_a4

#define BL_OSR_a4   0x14

◆ BL_OSR_a5

#define BL_OSR_a5   0x15

◆ BL_OSR_a6

#define BL_OSR_a6   0x16

◆ BL_OSR_a7

#define BL_OSR_a7   0x17

◆ BL_OSR_d0

#define BL_OSR_d0   0x00

◆ BL_OSR_d1

#define BL_OSR_d1   0x01

◆ BL_OSR_d2

#define BL_OSR_d2   0x02

◆ BL_OSR_d3

#define BL_OSR_d3   0x03

◆ BL_OSR_d4

#define BL_OSR_d4   0x04

◆ BL_OSR_d5

#define BL_OSR_d5   0x05

◆ BL_OSR_d6

#define BL_OSR_d6   0x06

◆ BL_OSR_d7

#define BL_OSR_d7   0x07

◆ BL_OSR_N1

#define BL_OSR_N1 ( r)
Value:
BL_OSR_##r,

◆ BL_OSR_N10

#define BL_OSR_N10 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N9(__VA_ARGS__)
#define BL_OSR_N9(r,...)
Definition blitzlib.h:464

◆ BL_OSR_N11

#define BL_OSR_N11 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N10(__VA_ARGS__)
#define BL_OSR_N10(r,...)
Definition blitzlib.h:465

◆ BL_OSR_N12

#define BL_OSR_N12 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N11(__VA_ARGS__)
#define BL_OSR_N11(r,...)
Definition blitzlib.h:466

◆ BL_OSR_N13

#define BL_OSR_N13 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N12(__VA_ARGS__)
#define BL_OSR_N12(r,...)
Definition blitzlib.h:467

◆ BL_OSR_N14

#define BL_OSR_N14 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N13(__VA_ARGS__)
#define BL_OSR_N13(r,...)
Definition blitzlib.h:468

◆ BL_OSR_N15

#define BL_OSR_N15 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N14(__VA_ARGS__)
#define BL_OSR_N14(r,...)
Definition blitzlib.h:469

◆ BL_OSR_N16

#define BL_OSR_N16 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N15(__VA_ARGS__)
#define BL_OSR_N15(r,...)
Definition blitzlib.h:470

◆ BL_OSR_N17

#define BL_OSR_N17 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N16(__VA_ARGS__)
#define BL_OSR_N16(r,...)
Definition blitzlib.h:471

◆ BL_OSR_N18

#define BL_OSR_N18 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N17(__VA_ARGS__)
#define BL_OSR_N17(r,...)
Definition blitzlib.h:472

◆ BL_OSR_N19

#define BL_OSR_N19 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N18(__VA_ARGS__)
#define BL_OSR_N18(r,...)
Definition blitzlib.h:473

◆ BL_OSR_N2

#define BL_OSR_N2 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N1(__VA_ARGS__)
#define BL_OSR_N1(r)
Definition blitzlib.h:456

◆ BL_OSR_N3

#define BL_OSR_N3 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N2(__VA_ARGS__)
#define BL_OSR_N2(r,...)
Definition blitzlib.h:457

◆ BL_OSR_N4

#define BL_OSR_N4 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N3(__VA_ARGS__)
#define BL_OSR_N3(r,...)
Definition blitzlib.h:458

◆ BL_OSR_N5

#define BL_OSR_N5 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N4(__VA_ARGS__)
#define BL_OSR_N4(r,...)
Definition blitzlib.h:459

◆ BL_OSR_N6

#define BL_OSR_N6 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N5(__VA_ARGS__)
#define BL_OSR_N5(r,...)
Definition blitzlib.h:460

◆ BL_OSR_N7

#define BL_OSR_N7 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N6(__VA_ARGS__)
#define BL_OSR_N6(r,...)
Definition blitzlib.h:461

◆ BL_OSR_N8

#define BL_OSR_N8 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N7(__VA_ARGS__)
#define BL_OSR_N7(r,...)
Definition blitzlib.h:462

◆ BL_OSR_N9

#define BL_OSR_N9 ( r,
... )
Value:
BL_OSR_##r, BL_OSR_N8(__VA_ARGS__)
#define BL_OSR_N8(r,...)
Definition blitzlib.h:463

◆ BL_OSREGS

#define BL_OSREGS ( ...)
Value:
BL_CAT(BL_OSR_N, BL_NARGS(__VA_ARGS__))(__VA_ARGS__)

◆ BL_PACKED

#define BL_PACKED   __attribute__((packed, aligned(2)))

◆ BL_PD

#define BL_PD ( n)
Value:
(n) /* #pd0..#pd7 */

◆ BL_PD0

#define BL_PD0   0 /* #pd0..#pd7: PD = Parameter in dN, the number of I */

◆ BL_PD1

#define BL_PD1   1

◆ BL_PD2

#define BL_PD2   2

◆ BL_PD3

#define BL_PD3   3

◆ BL_PD4

#define BL_PD4   4

◆ BL_PD5

#define BL_PD5   5

◆ BL_PD6

#define BL_PD6   6

◆ BL_PD7

#define BL_PD7   7

◆ BL_PUSH

#define BL_PUSH   64

◆ BL_QUICK

#define BL_QUICK   4

◆ BL_REG

#define BL_REG ( r)
Value:
__asm(#r)

◆ BL_STR

#define BL_STR ( x)
Value:
#define BL_STR_(x)
Definition blitzlib.h:532

◆ BL_STR_

#define BL_STR_ ( x)
Value:
#x

◆ BL_STRING

#define BL_STRING   7

◆ BL_THUNK_

#define BL_THUNK_ ( entry,
cfunc,
save,
pre,
tail )
Value:
" movem.l " save ",-(sp)\n" pre \
" jsr _" #cfunc "\n" tail \
" movem.l (sp)+," save "\n" \
" rts\n")
#define BL_ASM_FUNC_(attrs, name, text)
Definition blitzlib.h:783
static struct snowfield * entry(ULONG n)
Definition risnowlib.c:205

◆ BL_TOKVAL

#define BL_TOKVAL ( tok,
form )
Value:
(0x80000000UL | ((ULONG)(form) << 16) | (UWORD)(tok))

◆ BL_UA0

#define BL_UA0   (BL_LA0 | BL_USED)

◆ BL_UA1

#define BL_UA1   (BL_LA1 | BL_USED)

◆ BL_UA2

#define BL_UA2   (BL_LA2 | BL_USED)

◆ BL_UA3

#define BL_UA3   (BL_LA3 | BL_USED)

◆ BL_UA6

#define BL_UA6   (BL_LA6 | BL_USED)

◆ BL_UD0

#define BL_UD0   (BL_LD0 | BL_USED) /* #ud*, #ua*: U = Used object (LIBFIN7) */

◆ BL_UD1

#define BL_UD1   (BL_LD1 | BL_USED)

◆ BL_UD2

#define BL_UD2   (BL_LD2 | BL_USED)

◆ BL_UD3

#define BL_UD3   (BL_LD3 | BL_USED)

◆ BL_UD4

#define BL_UD4   (BL_LD4 | BL_USED)

◆ BL_UD5

#define BL_UD5   (BL_LD5 | BL_USED)

◆ BL_UD6

#define BL_UD6   (BL_LD6 | BL_USED)

◆ BL_UD7

#define BL_UD7   (BL_LD7 | BL_USED)

◆ BL_UNKNOWN

#define BL_UNKNOWN   8

◆ BL_USED

#define BL_USED   2 /* #used: current object */

◆ BL_USEDOFF

#define BL_USEDOFF   4 /* a5 offset of the used object */

◆ BL_USESIZE

#define BL_USESIZE   0

◆ BL_VARPTR

#define BL_VARPTR   128

◆ BL_WORD

#define BL_WORD   2

◆ BL_WORDRET

#define BL_WORDRET   (-1)

◆ BLITZ_AB_ROUTINE

#define BLITZ_AB_ROUTINE ( entry,
blitzentry,
text )
Value:
" .word 0xa001\n" \
" .long _" #blitzentry "\n" text "\n")

◆ BLITZ_ACOMMAND

#define BLITZ_ACOMMAND ( t)
Value:
BL_KIND(((t) << 8) + 3)
#define BL_KIND(v)
Definition blitzlib.h:340

◆ BLITZ_AFUNCTION

#define BLITZ_AFUNCTION ( t)
Value:
BL_KIND(((t) << 8) + 2)

◆ BLITZ_ALIAS

#define BLITZ_ALIAS ( entry,
cfunc )
Value:
__asm__(" .globl _" #entry "\n .set _" #entry ",_" #cfunc)

◆ BLITZ_ALIAS_EP

#define BLITZ_ALIAS_EP ( entry,
cfunc )
Value:
__asm__(" .globl _" #entry "\n .set _" #entry ",_" #cfunc \
"\n .globl ___blitz_entrypoint_" #entry \
"\n .set ___blitz_entrypoint_" #entry ",_" #cfunc)

◆ BLITZ_ALIBJSR

#define BLITZ_ALIBJSR ( tok,
r )
Value:
BL_JSR_(BL_TOKVAL(tok, 0), r)
#define BL_TOKVAL(tok, form)
Definition blitzlib.h:526
#define BL_JSR_(val, r)
Definition blitzlib.h:558

◆ BLITZ_ALIBJSR_A2A6

#define BLITZ_ALIBJSR_A2A6 ( tok,
x,
a2v,
a6v )
Value:
({ \
register ULONG _d0 __asm("d0") = (ULONG)(x); \
register const void *_a2 __asm("a2") = (a2v); \
register const void *_a6 __asm("a6") = (a6v); \
__asm volatile("jsr _blitz_tok+%c4" \
: "+d"(_d0), "+a"(_a2), "+a"(_a6), BL_A3_ : "i"(BL_TOKVAL(tok, 0)) \
: "d1", "d2", "d3", "d4", "d5", "d6", "d7", "a0", "a1", "cc", "memory"); \
_d0; })

◆ BLITZ_ALIBJSR_A6

#define BLITZ_ALIBJSR_A6 ( tok,
base,
x )
Value:
({ \
register ULONG _d0 __asm("d0") = (x); \
register const void *_a6 __asm("a6") = (base); \
__asm volatile("jsr _blitz_tok+%c3" \
: "+d"(_d0), "+a"(_a6), BL_A3_ : "i"(BL_TOKVAL(tok, 0)) \
: "d1", "d2", "d3", "d4", "d5", "d6", "d7", "a0", "a1", "cc", "memory"); \
_d0; })

◆ BLITZ_ALIBJSR_CCR

#define BLITZ_ALIBJSR_CCR ( tok,
r,
cc )
Value:
({ \
register ULONG _d0 __asm("d0") = (r).d0; \
register ULONG _d1 __asm("d1") = (r).d1; \
register ULONG _a0 __asm("a0") = (r).a0; \
register ULONG _a1 __asm("a1") = (r).a1; \
UBYTE _cc; \
__asm volatile("jsr _blitz_tok+%c6\n\ts" cc " %4" \
: "+d"(_d0), "+d"(_d1), "+a"(_a0), "+a"(_a1), "=m"(_cc), BL_A3_ \
: "i"(BL_TOKVAL(tok, 0)) \
: "d2", "d3", "d4", "d5", "d6", "d7", "a2", "a6", "cc", "memory"); \
(r).d0 = _d0; (r).d1 = _d1; (r).a0 = _a0; (r).a1 = _a1; _cc; })

◆ BLITZ_ALIBJSR_CCR_D0A0

#define BLITZ_ALIBJSR_CCR_D0A0 ( tok,
cc,
d0p,
a0v )
Value:
({ \
register ULONG _d0 __asm("d0") = *(d0p); \
register ULONG _d1 __asm("d1"); \
register const void *_a0 __asm("a0") = (a0v); \
register ULONG _a1 __asm("a1"); \
UBYTE _cc; \
__asm volatile("jsr _blitz_tok+%c6\n\ts" cc " %4" \
: "+d"(_d0), "=d"(_d1), "+a"(_a0), "=a"(_a1), "=m"(_cc), BL_A3_ \
: "i"(BL_TOKVAL(tok, 0)) \
: "d2", "d3", "d4", "d5", "d6", "d7", "a2", "a6", "cc", "memory"); \
*(d0p) = _d0; _cc; })

◆ BLITZ_ALIBJSR_D4

#define BLITZ_ALIBJSR_D4 ( tok,
x0,
x1,
x2,
x3 )
Value:
BL_JSR_D4_(BL_TOKVAL(tok, 0), x0, x1, x2, x3)
#define BL_JSR_D4_(val, x0, x1, x2, x3)
Definition blitzlib.h:743

◆ BLITZ_ALIBJSR_FORM

#define BLITZ_ALIBJSR_FORM ( tok,
form,
r )
Value:

◆ BLITZ_AMIGAONLY

#define BLITZ_AMIGAONLY ( code)
Value:
((char *)(code) + 1)
UBYTE code[4]
Definition ridisasmlib.c:375

◆ BLITZ_ARGS

#define BLITZ_ARGS ( ...)
Value:
static const struct BL_PACKED { UWORD n; UBYTE t[BL_NARGS(__VA_ARGS__)]; } \
BL_ID(bl_args_) BL_HEAD = { BL_NARGS(__VA_ARGS__), { __VA_ARGS__ } }
#define BL_PACKED
Definition blitzlib.h:299

◆ BLITZ_ARGS0

#define BLITZ_ARGS0 ( )
Value:
static const UWORD BL_ID(bl_args_) BL_HEAD = 0

◆ BLITZ_ASM_BLOCK

#define BLITZ_ASM_BLOCK ( name,
text )
Value:
BL_ASM_FUNC_(static BLITZ_ROUTINE, bl_asm_##name, text "\n")
#define BLITZ_ROUTINE
Definition blitzlib.h:313

◆ BLITZ_ASM_ROUTINE

#define BLITZ_ASM_ROUTINE ( entry,
text )
Value:

◆ BLITZ_ASTATEMENT

#define BLITZ_ASTATEMENT ( )
Value:

◆ BLITZ_BASEJSR

#define BLITZ_BASEJSR ( base,
off,
r )
Value:
({ \
register ULONG _d0 __asm("d0") = (r).d0; \
register ULONG _d1 __asm("d1") = (r).d1; \
register ULONG _a0 __asm("a0") = (r).a0; \
register ULONG _a1 __asm("a1") = (r).a1; \
register const void *_a6 __asm("a6") = (base); \
__asm volatile("jsr %c5(a6)" \
: "+d"(_d0), "+d"(_d1), "+a"(_a0), "+a"(_a1), "+a"(_a6) : "i"(off) \
: "d2", "d3", "d4", "d5", "d6", "d7", "a2", "cc", "memory"); \
(r).d0 = _d0; (r).d1 = _d1; (r).a0 = _a0; (r).a1 = _a1; _d0; })

◆ BLITZ_BLIBJSR

#define BLITZ_BLIBJSR ( tok,
r )
Value:
BL_JSR_(BL_BTOKVAL(tok, 0), r)
#define BL_BTOKVAL(tok, form)
Definition blitzlib.h:527

◆ BLITZ_BLIBJSR_D4

#define BLITZ_BLIBJSR_D4 ( tok,
x0,
x1,
x2,
x3 )
Value:
BL_JSR_D4_(BL_BTOKVAL(tok, 0), x0, x1, x2, x3)

◆ BLITZ_BLITZONLY

#define BLITZ_BLITZONLY   ((void *)1)

◆ BLITZ_BLITZONLY_CHK

#define BLITZ_BLITZONLY_CHK ( chk)
Value:
((char *)(chk) + 1)

◆ BLITZ_DUMTOKE

#define BLITZ_DUMTOKE ( label,
name,
help )
Value:
static const struct BL_PACKED { UWORD k[3]; ULONG next; UWORD num; \
char n[sizeof(name)]; char h[sizeof(help)]; } label BL_HEAD = { \
{ 8, 0, 0 }, 0, 0, name, help }
struct TagItem h
Definition asllib.c:193
struct portnode * next
Definition utillib.c:115
static void num(struct out *o, uint32_t v)
Definition xtra_ab3.c:509

◆ BLITZ_ENTRY_C

#define BLITZ_ENTRY_C ( f)
Value:
extern char e_##f[] __asm__("_" #f)

◆ BLITZ_ENTRY_DECL

#define BLITZ_ENTRY_DECL ( label)
Value:
extern const UWORD label[]

◆ BLITZ_ENTRYPOINT

#define BLITZ_ENTRYPOINT   __entrypoint __attribute__((no_icf))

◆ BLITZ_EP_KEEP_A6

#define BLITZ_EP_KEEP_A6 ( )
Value:
register ULONG bl_keep_a6_ __asm("a6"); \
__asm__ volatile("" : "=a"(bl_keep_a6_))

◆ BLITZ_EP_KEEP_A6_END

#define BLITZ_EP_KEEP_A6_END ( )
Value:
__asm__ volatile("" : : "a"(bl_keep_a6_))

◆ BLITZ_EP_MARK

#define BLITZ_EP_MARK ( cfunc)
Value:
__asm__(" .globl ___blitz_entrypoint_" #cfunc \
"\n .set ___blitz_entrypoint_" #cfunc ",_" #cfunc)

◆ BLITZ_ERRCHK

#define BLITZ_ERRCHK   __attribute__((section(".blitzlib.errchk"), used))

◆ BLITZ_ERRCHK_AB

#define BLITZ_ERRCHK_AB ( entry,
blitz,
amiga )
Value:
" .word 0xa001\n" \
" .long _" #blitz "\n" \
" jmp _" #amiga "\n")
#define BLITZ_ERRCHK
Definition blitzlib.h:307

◆ BLITZ_ERRCHK_ASM

#define BLITZ_ERRCHK_ASM ( name,
text )
Value:
BL_ASM_FUNC_(static BLITZ_ERRCHK, bl_errchk_asm_##name, text "\n")

◆ BLITZ_ERRCHK_MESSAGE

#define BLITZ_ERRCHK_MESSAGE ( label,
text )
Value:
extern const char label[]; \
BL_ASM_FUNC_(static BLITZ_ERRCHK, bl_errchk_message_##label, \
"_" #label ":\n .asciz \"" text "\"\n .even\n")

◆ BLITZ_ERRCHK_THUNK

#define BLITZ_ERRCHK_THUNK ( entry,
cfunc,
save )
Value:
" movem.l " save ",-(sp)\n" \
" jsr _" #cfunc "\n" \
" movem.l (sp)+," save "\n" \
" rts\n")

◆ BLITZ_ERROR_AREA

#define BLITZ_ERROR_AREA   blitz_errchk_start

◆ BLITZ_INLINE

#define BLITZ_INLINE ( entry,
text )
Value:
" .word 0xa000,2f-1f\n" \
"1: " text "\n" \
"2: rts\n")

◆ BLITZ_LIBFIN

#define BLITZ_LIBFIN ( )
Value:
static const struct BL_PACKED { UWORD m1; ULONG z; } \
BL_ID(bl_libfin_) BL_HEAD = { 0xffff, 0 }

◆ BLITZ_LIBFIN7

#define BLITZ_LIBFIN7 ( toke,
load,
save,
use,
free,
defmax,
shift )
Value:
static const struct BL_PACKED { UWORD m1; bl_addr t, l, s, u, f; \
UWORD z, mx, sh; } BL_ID(bl_libfin_) BL_HEAD = { 0xffff, \
BL_A(toke), BL_A(load), BL_A(save), BL_A(use), BL_A(free), 0, \
(defmax), (shift) }
#define BL_A(x)
Definition blitzlib.h:303
static WORD mx
Definition blitzoslib.c:1728
UWORD shift
Definition spriteslib.c:170
Definition debuglib.c:85

◆ BLITZ_LIBHEADER

#define BLITZ_LIBHEADER ( libnum,
init,
ret,
finit,
error )
Value:
BLITZ_SYSLIBHEADER(libnum, 0, 0, init, ret, finit, error, 0)
#define BLITZ_SYSLIBHEADER(libnum, first, last, init, ret, finit, error, flags)
Definition blitzlib.h:320
struct TagItem title font error
Definition screenslib.c:308

◆ BLITZ_LIBS

#define BLITZ_LIBS ( ...)
Value:
static const UWORD BL_ID(bl_libs_)[] BL_HEAD = { __VA_ARGS__, 0 }

◆ BLITZ_LIBS0

#define BLITZ_LIBS0 ( )
Value:
static const UWORD BL_ID(bl_libs_) BL_HEAD = 0

◆ BLITZ_NAME

#define BLITZ_NAME ( name,
help )
Value:
static const struct BL_PACKED { UWORD m1; ULONG next; UWORD num; \
char n[sizeof(name)]; char h[sizeof(help)]; } \
BL_ID(bl_name_) BL_HEAD = { 0xffff, 0, 0, name, help }

◆ BLITZ_NAME_AT

#define BLITZ_NAME_AT ( label,
name,
help )
Value:
static const struct BL_PACKED { UWORD m1; ULONG next; UWORD num; \
char n[sizeof(name)]; char h[sizeof(help)]; } \
label BL_HEAD = { 0xffff, 0, 0, name, help }

◆ BLITZ_NULLSUB

#define BLITZ_NULLSUB ( code,
err1,
... )
Value:
BL_KIND(0); BL_NULLSUB_LIBS(__VA_ARGS__); BLITZ_SUBS(code, err1, BL_FIRST(__VA_ARGS__))
#define BL_FIRST(a,...)
Definition blitzlib.h:387
#define BL_NULLSUB_LIBS(err2,...)
Definition blitzlib.h:388
#define BLITZ_SUBS(code, err1, err2)
Definition blitzlib.h:366
static const char err1[]
Definition wbstartuplib.c:84

◆ BLITZ_NULLSUB_AT

#define BLITZ_NULLSUB_AT ( label,
code,
err1,
... )
Value:
const UWORD label[3] BL_HEAD = { 0, 0, 0 }; \
BL_NULLSUB_LIBS(__VA_ARGS__); BLITZ_SUBS(code, err1, BL_FIRST(__VA_ARGS__))

◆ BLITZ_OSCALL

#define BLITZ_OSCALL ( oslib,
lvo,
name,
help,
... )
Value:
static const struct BL_PACKED { UWORD k[3]; UWORD lib; WORD off; \
UBYTE r[(BL_NOSREGS(__VA_ARGS__) + 2) & ~1]; ULONG next; UWORD num; \
char n[sizeof(name)]; char h[sizeof(help)]; } \
BL_ID(bl_oscall_) BL_HEAD = { { 6, 0, 0 }, (oslib), (lvo), \
{ __VA_OPT__(BL_OSREGS(__VA_ARGS__)) 0xff }, 0, 0, name, help }
#define BL_NOSREGS(...)
Definition blitzlib.h:476
#define BL_OSREGS(...)
Definition blitzlib.h:455

◆ BLITZ_OSLIBHEADER

#define BLITZ_OSLIBHEADER ( libnum,
init,
ret,
finit )
Value:
static const struct BL_PACKED { UWORD z0, z2; UWORD num; ULONG z6; \
UWORD za, fl, ft, lt; ULONG z12; bl_addr in; WORD rt; bl_addr fi; \
ULONG z20, z24, z28; bl_addr er; } BL_ID(bl_header_) BL_HEAD = { \
0, 0, (UWORD)(libnum), 0, 0, 0, 0, 0, 0, \
BL_A(init), (ret), BL_A(finit), 0, 0, 0, 0 }

◆ BLITZ_REPARGS

#define BLITZ_REPARGS ( first,
num,
... )
Value:
static const struct BL_PACKED { UWORD n; UBYTE t[BL_NARGS(__VA_ARGS__)]; } \
BL_ID(bl_repargs_) BL_HEAD = { \
((first) << 12) | ((num) << 8) | BL_NARGS(__VA_ARGS__), { __VA_ARGS__ } }
UWORD first
Definition palettelib.c:318

◆ BLITZ_ROUTINE

#define BLITZ_ROUTINE   __attribute__((used))

◆ BLITZ_RUNERR

#define BLITZ_RUNERR ( msg)
Value:
do { \
register const char *_m __asm("d0") = (msg); \
__asm volatile("trap #0" : : "d"(_m) : "memory"); \
} while (0)
static struct AppMessage * msg
Definition riapplib.c:274

◆ BLITZ_SUBS

#define BLITZ_SUBS ( code,
err1,
err2 )
Value:
static const struct BL_PACKED { bl_addr e1, c, e2; } \
BL_ID(bl_subs_) BL_HEAD = { BL_A(err1), BL_A(code), BL_A(err2) }
ULONG WORD UWORD c
Definition 2dlib.c:2491

◆ BLITZ_SYSJSR

#define BLITZ_SYSJSR ( base,
off,
r )
Value:
({ \
register ULONG _d0 __asm("d0") = (r).d0; \
register ULONG _d1 __asm("d1") = (r).d1; \
register ULONG _a0 __asm("a0") = (r).a0; \
register ULONG _a1 __asm("a1") = (r).a1; \
register const void *_a6 __asm("a6") = (base); \
__asm volatile("jsr %c5(a6)" \
: "+d"(_d0), "+d"(_d1), "+a"(_a0), "+a"(_a1) : "a"(_a6), "i"(off) \
: "cc", "memory"); \
(r).d0 = _d0; (r).d1 = _d1; (r).a0 = _a0; (r).a1 = _a1; _d0; })

◆ BLITZ_SYSJSR1

#define BLITZ_SYSJSR1 ( base,
off,
x0 )
Value:
({ \
register ULONG _d0 __asm("d0") = (x0); \
register const void *_a6 __asm("a6") = (base); \
__asm volatile("jsr %c2(a6)" \
: "+d"(_d0) : "a"(_a6), "i"(off) \
: "d1", "a0", "a1", "cc", "memory"); \
_d0; })

◆ BLITZ_SYSJSR2

#define BLITZ_SYSJSR2 ( base,
off,
x0,
x1 )
Value:
({ \
register ULONG _d0 __asm("d0") = (x0); \
register ULONG _d1 __asm("d1") = (x1); \
register const void *_a6 __asm("a6") = (base); \
__asm volatile("jsr %c3(a6)" \
: "+d"(_d0), "+d"(_d1) : "a"(_a6), "i"(off) \
: "a0", "a1", "cc", "memory"); \
_d0; })

◆ BLITZ_SYSLIBHEADER

#define BLITZ_SYSLIBHEADER ( libnum,
first,
last,
init,
ret,
finit,
error,
flags )
Value:
static const struct BL_PACKED { UWORD moveq, rts; UWORD num; ULONG z6; \
UWORD za, fl, ft, lt; ULONG z12; bl_addr in; WORD rt; bl_addr fi; \
ULONG z20, z24, z28; bl_addr er; } BL_ID(bl_header_) BL_HEAD = { \
0x7000, 0x4e75, (UWORD)(libnum), 0, 0, (flags), (first), (last), 0, \
BL_A(init), (ret), BL_A(finit), 0, 0, 0, BL_A(error) }
UBYTE flags[2]
Definition 2dlib.c:297
static UWORD last
Definition vallib.c:165

◆ BLITZ_SYSLIBHEADER7

#define BLITZ_SYSLIBHEADER7 ( libnum,
first,
last,
init,
ret,
finit,
error )
Value:
BLITZ_SYSLIBHEADER(libnum, first, last, init, ret, finit, error, 0)

◆ BLITZ_THUNK

#define BLITZ_THUNK ( entry,
cfunc,
save )
Value:
BL_THUNK_(entry, cfunc, save, "", "")
#define BL_THUNK_(entry, cfunc, save, pre, tail)
Definition blitzlib.h:876

◆ BLITZ_THUNK_POP

#define BLITZ_THUNK_POP ( entry,
cfunc,
save,
pre,
tail,
pop )
Value:
" .ifnc \"" save "\",\"\"\n" \
" movem.l " save ",-(sp)\n" \
" .endif\n" \
" " pre "\n" \
" jsr _" #cfunc "\n" \
" " tail "\n" \
" .ifnc \"" save "\",\"\"\n" \
" movem.l (sp)+," save "\n" \
" .endif\n" \
" .if " #pop "\n" \
" movem.l a0,-(sp)\n" \
" movem.l 4(sp),a0\n" \
" movem.l a0,4+" #pop "(sp)\n" \
" movem.l (sp)+,a0\n" \
" lea " #pop "(sp),sp\n" \
" .endif\n" \
" rts\n")

◆ BLITZ_THUNK_POST

#define BLITZ_THUNK_POST ( entry,
cfunc,
save,
post )
Value:
BL_THUNK_(entry, cfunc, save, "", " " post "\n")

◆ BLITZ_THUNK_PRE

#define BLITZ_THUNK_PRE ( entry,
cfunc,
save,
pre )
Value:
BL_THUNK_(entry, cfunc, save, " " pre "\n", "")

◆ BLITZ_THUNK_Z

#define BLITZ_THUNK_Z ( entry,
cfunc,
save )
Value:
BL_THUNK_(entry, cfunc, save, "", " tst.l d0\n")

◆ BLITZ_TOKE

#define BLITZ_TOKE ( tok)
Value:
((void *)(blitz_tok + BL_TOKVAL(tok, 0)))
char blitz_tok[]

◆ BLITZ_UFUNCTION

#define BLITZ_UFUNCTION ( )
Value:
BL_KIND(8 + 2)

◆ BLITZ_USTATEMENT

#define BLITZ_USTATEMENT ( )
Value:
BL_KIND(8 + 1)

Typedef Documentation

◆ bl_addr

typedef void* bl_addr

Enumeration Type Documentation

◆ BB_BOOL

enum BB_BOOL : ULONG
Enumerator
BB_FALSE 
BB_TRUE 

Variable Documentation

◆ blitz_errchk_start

char blitz_errchk_start[]
extern

◆ blitz_globals

register UBYTE* blitz_globals

◆ blitz_locals

register UBYTE* blitz_locals

◆ blitz_string

register UBYTE* blitz_string

◆ blitz_tok

char blitz_tok[]
extern