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

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 }

Function Documentation

◆ _cludgeacid()

void _cludgeacid ( void )

◆ _libfinit()

void _libfinit ( void )
static

finit: nothing (RTS).

◆ _libinit()

void _libinit ( void )
static

init: nothing (RTS).

◆ _peekb()

void _peekb ( void )

◆ peekb()

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).

◆ rishapezlib_SetWindowDraw()

void rishapezlib_SetWindowDraw ( void )

◆ setwindowdraw_c()

void setwindowdraw_c ( UWORD mode,
struct Window ** win )
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.

Parameters
moded1: 0 normal, else meshed (the word)
wina0: the used window object (its first long the Window)

Variable Documentation

◆ mypattern

const UWORD mypattern[2] = { 0xaaaa, 0x5555 }
static

◆ rishapez_myold

ULONG rishapez_myold