|
BB2 C port
API reference: Blitz libraries in C and the shared code
|
Functions | |
| void | _cludgeacid (void) |
| void | _peekb (void) |
| void | rishapezlib_SetWindowDraw (void) |
| static void | _libinit (void) |
| init: nothing (RTS). | |
| static void | _libfinit (void) |
| finit: nothing (RTS). | |
| void | peekb (void) |
| PeekByte(address): the byte at address; and CludgeAcid on|off: a4 saved or restored. | |
| static void | setwindowdraw_c (UWORD mode, struct Window **win) |
| SetWinDrawShapeZ window#,mode: the used window's area pattern. | |
Variables | |
| ULONG | rishapez_myold |
| static const UWORD | mypattern [2] = { 0xaaaa, 0x5555 } |
| void _cludgeacid | ( | void | ) |
|
static |
finit: nothing (RTS).
|
static |
init: nothing (RTS).
| void _peekb | ( | void | ) |
| void peekb | ( | void | ) |
PeekByte(address): the byte at address; and CludgeAcid on|off: a4 saved or restored.
PeekByte is inline (MOVE.l d0,a0:MOVE.b (a0),d0:ANDI.w $ff,d0): d0 = the address, result d0.w = the byte. Directly behind it, as in the original, CludgeAcid on|off: d0.b = 1 sets a4 = the saved a4 (0 if nothing was saved yet), any other value saves a4 (the Blitz program's locals pointer, fixed for GCC: assembler); no result. PeekByte has no RTS: as a subroutine it would run into CludgeAcid with d0 = the byte, but compiled programs always copy it inline (#907, not a defect; see the head of the file).
| void rishapezlib_SetWindowDraw | ( | void | ) |
|
static |
SetWinDrawShapeZ window#,mode: the used window's area pattern.
Mode 0: no pattern (AreaPtrn NULL, AreaPtSz 0), else the mesh $AAAA/$5555 (AreaPtSz 1). The window# argument (d0) is not used: the window is the used one (!libs windowslib,ua0); the help text names only the mode.
|
static |
| ULONG rishapez_myold |