ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
Loading...
Searching...
No Matches
bitmap_clear.c File Reference
#include "../../ugbc.h"

Go to the source code of this file.

Functions

void bitmap_clear_with (Environment *_environment, int _pattern)
 Emit ASM implementation for BITMAP CLEAR WITH [int] instruction.
void bitmap_clear_with_vars (Environment *_environment, char *_pattern)
 Emit ASM implementation for BITMAP CLEAR WITH [expression] instruction.
void bitmap_clear (Environment *_environment)
 Emit ASM implementation for BITMAP CLEAR instruction.

Function Documentation

◆ bitmap_clear()

void bitmap_clear ( Environment * _environment)

Emit ASM implementation for BITMAP CLEAR instruction.

This instruction allows you to fill the bitmap with an empty pattern (usually zero). The filled part is exclusively that linked to the bitmap, so the color information is kept unchanged. This is the version that is recalled where the source presents the instruction with reference to a computer expression.

Precondition
Bitmap must be enabled at least once with instruction BITMAP ENABLE.
Parameters
_environmentCurrent calling environment
Exceptions
EXIT_FAILURECRITICAL: BITMAP CLEAR WITH xxx needs BITMAP ENABLED

Definition at line 122 of file bitmap_clear.c.

◆ bitmap_clear_with()

void bitmap_clear_with ( Environment * _environment,
int _pattern )

Emit ASM implementation for BITMAP CLEAR WITH [int] instruction.

This instruction allows you to fill the bitmap with a certain pattern (usually zero is used to indicate the blank screen). The filled part is exclusively that linked to the bitmap, so the color information is kept unchanged. This is the version that is recalled where the source presents the instruction with reference to a direct pattern (e.g. 42).

Precondition
Bitmap must be enabled at least once with instruction BITMAP ENABLE.
Parameters
_environmentCurrent calling environment
_patternPattern to use
Exceptions
EXIT_FAILURE"BITMAP CLEAR WITH xxx needs BITMAP ENABLED"

Definition at line 60 of file bitmap_clear.c.

◆ bitmap_clear_with_vars()

void bitmap_clear_with_vars ( Environment * _environment,
char * _pattern )

Emit ASM implementation for BITMAP CLEAR WITH [expression] instruction.

This instruction allows you to fill the bitmap with a certain pattern (usually zero is used to indicate the blank screen). The filled part is exclusively that linked to the bitmap, so the color information is kept unchanged. This is the version that is recalled where the source presents the instruction with reference to a computer expression.

Precondition
Bitmap must be enabled at least once with instruction BITMAP ENABLE.
Parameters
_environmentCurrent calling environment
_patternPattern to use
Exceptions
EXIT_FAILURE"BITMAP CLEAR WITH xxx needs BITMAP ENABLED"

Definition at line 93 of file bitmap_clear.c.