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

Functions

static ULONG codeinit (void)
 init: open mathffp.library.
static void codefinit (struct Library *lib)
 finit: close mathffp.library again.

Variables

static const char ffpname [] = "mathffp.library"

Function Documentation

◆ codefinit()

void codefinit ( struct Library * lib)
static

finit: close mathffp.library again.

MOVE.l 4,a6:JMP _CloseLibrary(a6).

Parameters
liba1: the init value, the library base (!libs 64935,la1)

◆ codeinit()

ULONG codeinit ( void )
static

init: open mathffp.library.

LEA ffpname(pc),a1:MOVE.l 4,a6:JMP _OldOpenLibrary(a6), no version check. The original changes d0/d1/a0/a1 (exec) and a6; this keeps a6. BUG(orig) (#137): the result is not checked; with 0 the first float operation jumps to a negative offset from 0.

Returns
d0: the library base (the init value, $C900 getffpbase loads it into a6), 0 if it could not be opened

Variable Documentation

◆ ffpname

const char ffpname[] = "mathffp.library"
static