BB2 C port
API reference: Blitz libraries in C and the shared code
Loading...
Searching...
No Matches
exitslib.c File Reference
#include "blitzlib.h"

Functions

void quit (void)
 End ($C800 endjmp): leave the program from anywhere.
void exitslib_codeinit (void)
 init: remember the cleanup code and the stack pointer.
void data (void)

Function Documentation

◆ data()

void data ( void )

◆ exitslib_codeinit()

void exitslib_codeinit ( void )

init: remember the cleanup code and the stack pointer.

Called from the program start code. Assembler (it saves sp).

  • d0 the address of the cleanup code
    Result
    d0: the address of quit, the init value used by End

◆ quit()

void quit ( void )

End ($C800 endjmp): leave the program from anywhere.

Assembler (a non-local exit like longjmp): restores the stack pointer saved by init (+8: the start code's return address and the init call's own) and jumps to the cleanup code. Does not return.