|
BB2 C port
API reference: Blitz libraries in C and the shared code
|
Functions | |
| void | varslib_codeinit (void) |
| init entry (thunk of codeinit_c). | |
| static void | codefinit (ULONG size) |
| finit - free the global variables. | |
| static ULONG | codeinit_c (ULONG size) |
| init - allocate the global variables. | |
|
static |
finit - free the global variables.
Frees a5-$8000: ADD $8000,a1 adds the sign extended word -32768.
| size | d0: the size of the globals, as given to codeinit |
|
static |
init - allocate the global variables.
Allocates the block (MEMF_PUBLIC | MEMF_CLEAR) and sets a5 (blitz_globals) to block+$8000, so the globals are addressed with signed 16 bit offsets.
| size | d0: the size of the globals |
| void varslib_codeinit | ( | void | ) |
init entry (thunk of codeinit_c).
a0 is preserved. Without memory the original drops 12 bytes (saved a0, its own return address and the start code's return address) and so returns from the program start - the program ends.