Skip to content

rishapezlib

A small library of Reflective Images with three unrelated helpers. PeekByte reads one byte from memory. SetWinDrawShapeZ gives the current window a mesh pattern for the system’s area fills, or takes it away again. CludgeAcid saves the pointer to the local variables of the Blitz program and restores it later.

The library uses no objects of its own and needs no setup.

Library number 21.

Commands

CludgeAcid

With 1, restores the pointer to the local variables of the Blitz program that an earlier CludgeAcid saved; with any other value, saves it.

Statement. Help text: on|off
Arguments: .w

Only the low byte counts, so True (-1) saves like 0. A CludgeAcid 1 before anything was saved sets the pointer to 0.

PeekByte

The byte at addres, from 0 to 255.

Function, result .w. Help text: addres
Arguments: .l

SetWinDrawShapeZ

Sets the area pattern of the current window’s RastPort to a mesh (every other pixel) for a mode other than 0, and removes it for 0.

Statement. Help text: mode -- 0=normal, 1=meshed
Arguments: .w, .w

The command takes two values, a window number and the mode, although its help names only the mode. The window number is not used: the pattern always goes to the current window.