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

Go to the source code of this file.

Functions

void sprite_monocolor (Environment *_environment, int _sprite)
 Emit ASM code for SPRITE [int] MONOCOLOR.
void sprite_monocolor_var (Environment *_environment, char *_sprite)
 Emit ASM code for SPRITE [expression] MONOCOLOR.

Function Documentation

◆ sprite_monocolor()

void sprite_monocolor ( Environment * _environment,
int _sprite )

Emit ASM code for SPRITE [int] MONOCOLOR.

This function emits a code capable of enabling monocolor for a given sprite. The index of sprite is given as direct integer.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite for which enable monocolor (0...7)

Definition at line 52 of file sprite_monocolor.c.

◆ sprite_monocolor_var()

void sprite_monocolor_var ( Environment * _environment,
char * _sprite )

Emit ASM code for SPRITE [expression] MONOCOLOR.

This function emits a code capable of enabling monocolor for a given sprite. The index of sprite is given as expression.

Parameters
_environmentCurrent calling environment
_spriteExpression with index of the sprite for which enable monocolor (0...7)

Definition at line 69 of file sprite_monocolor.c.