|
BB2 C port
API reference: Blitz libraries in C and the shared code
|
Macros | |
| #define | ENV_FUNC(type, code, name) |
| #define | SCDATA_SIZE 346 /* new screen size */ |
| #define | GetScreenData (-426) /* intuition */ |
Functions | |
| void | environlib_codeinit (void) |
| void | dowbwidth (void) |
| void | dowbhite (void) |
| void | dowbdepth (void) |
| void | dowbviewmode (void) |
| void | doprocessor (void) |
| void | docr_vbr (void) |
| void | doexecversion (void) |
| void | doextwbviewmode (void) |
| ENV_FUNC (BL_LONG, dowbwidth, "WBWidth") | |
| ENV_FUNC (BL_LONG, dowbhite, "WBHeight") | |
| ENV_FUNC (BL_WORD, dowbdepth, "WBDepth") | |
| ENV_FUNC (BL_WORD, dowbviewmode, "WBViewMode") | |
| ENV_FUNC (BL_WORD, doprocessor, "Processor") | |
| ENV_FUNC (BL_LONG, docr_vbr, "cr_vbr") | |
| ENV_FUNC (BL_WORD, doexecversion, "ExecVersion") | |
| ENV_FUNC (BL_WORD, doextwbviewmode, "WBExtViewMode") | |
| static ULONG | getvbr (void) |
| static void | codeinit_c (const void *intuition) |
| static ULONG | wbwidth_c (void) |
| WBWidth: the width of the Workbench screen. | |
| static ULONG | wbhite_c (void) |
| WBHeight: the height of the Workbench screen. | |
| static ULONG | cr_vbr_c (void) |
| cr_vbr: the vector base register. | |
| static ULONG | wbdepth_c (void) |
| WBDepth: the depth of the Workbench screen's bitmap. | |
| static ULONG | wbviewmode_c (void) |
| WBViewMode: the view modes of the Workbench screen. | |
| static ULONG | extwbviewmode_c (void) |
| WBExtViewMode: the word behind ViewPort.Modes of the Workbench screen. | |
| static ULONG | processor_c (void) |
| Processor: the CPU, from exec's AttnFlags. | |
| static ULONG | execversion_c (void) |
| ExecVersion: exec.library's version (SysBase->LibNode.lib_Version). | |
| BLITZ_ALIAS (dowbwidth, wbwidth_c) | |
| BLITZ_ALIAS (dowbhite, wbhite_c) | |
| BLITZ_ALIAS (docr_vbr, cr_vbr_c) | |
| BLITZ_ALIAS (dowbdepth, wbdepth_c) | |
| BLITZ_ALIAS (dowbviewmode, wbviewmode_c) | |
| BLITZ_ALIAS (doextwbviewmode, extwbviewmode_c) | |
| BLITZ_ALIAS (doprocessor, processor_c) | |
| BLITZ_ALIAS (doexecversion, execversion_c) | |
Variables | |
| static struct Screen | scdata |
| static ULONG | wbwidth_ |
| static ULONG | wbhite_ |
| static ULONG | wbview_ |
| static ULONG | vbr_ |
| static UWORD | wbdepth_ |
| static UWORD | cpu_ |
| static UWORD | execver_ |
| #define GetScreenData (-426) /* intuition */ |
| BLITZ_ALIAS | ( | doexecversion | , |
| execversion_c | ) |
| BLITZ_ALIAS | ( | doextwbviewmode | , |
| extwbviewmode_c | ) |
| BLITZ_ALIAS | ( | doprocessor | , |
| processor_c | ) |
| BLITZ_ALIAS | ( | dowbviewmode | , |
| wbviewmode_c | ) |
|
static |
|
static |
cr_vbr: the vector base register.
Read at program start in supervisor state, on a 68010 or higher; 0 on the 68000. Fixed (#42): the original reads it only from the 68020 on (0 on a 68010).
| void docr_vbr | ( | void | ) |
| void doexecversion | ( | void | ) |
| void doextwbviewmode | ( | void | ) |
| void doprocessor | ( | void | ) |
| void dowbdepth | ( | void | ) |
| void dowbhite | ( | void | ) |
| void dowbviewmode | ( | void | ) |
| void dowbwidth | ( | void | ) |
| ENV_FUNC | ( | BL_WORD | , |
| doexecversion | , | ||
| "ExecVersion" | ) |
| ENV_FUNC | ( | BL_WORD | , |
| doextwbviewmode | , | ||
| "WBExtViewMode" | ) |
| ENV_FUNC | ( | BL_WORD | , |
| doprocessor | , | ||
| "Processor" | ) |
| ENV_FUNC | ( | BL_WORD | , |
| dowbviewmode | , | ||
| "WBViewMode" | ) |
| void environlib_codeinit | ( | void | ) |
|
static |
ExecVersion: exec.library's version (SysBase->LibNode.lib_Version).
|
static |
WBExtViewMode: the word behind ViewPort.Modes of the Workbench screen.
The low word of the long read at ViewPort.Modes at program start (MOVE.w wbview_+2): ViewPort.SpritePriority and ExtendedModes.
|
static |
|
static |
Processor: the CPU, from exec's AttnFlags.
The number of shifts until AttnFlags & 15 is 0: 0 = 68000, 1 = 68010, 2 = 68020, 3 = 68030, 4 = 68040.
|
static |
WBDepth: the depth of the Workbench screen's bitmap.
The value read at program start (RastPort.BitMap->Depth of the copy).
|
static |
WBHeight: the height of the Workbench screen.
The value read at program start (GetScreenData, not checked).
|
static |
WBViewMode: the view modes of the Workbench screen.
ViewPort.Modes of the copy read at program start (MOVE.w wbview_).
|
static |
WBWidth: the width of the Workbench screen.
The value read at program start (GetScreenData, not checked: a failed call leaves 0).
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |