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

Go to the source code of this file.

Functions

void color_sprite (Environment *_environment, int _index, int _common_color)
 Emit ASM code for instruction COLOR SPRITE [int] TO [int].
void color_sprite_semi_vars (Environment *_environment, int _index, char *_common_color)
void color_sprite_vars (Environment *_environment, char *_index, char *_common_color)
 Emit ASM code for instruction COLOR SPRITE [expression] TO [expression].

Function Documentation

◆ color_sprite()

void color_sprite ( Environment * _environment,
int _index,
int _common_color )

Emit ASM code for instruction COLOR SPRITE [int] TO [int].

This function outputs the ASM code to change the common sprite color, among those available. It should be used where the command is invoked with integers.

Parameters
_environmentCurrent calling environment
_indexIndex of the common color to set
_common_colorIndex of the color to use

Definition at line 47 of file color_sprite.c.

◆ color_sprite_semi_vars()

void color_sprite_semi_vars ( Environment * _environment,
int _index,
char * _common_color )

Definition at line 51 of file color_sprite.c.

◆ color_sprite_vars()

void color_sprite_vars ( Environment * _environment,
char * _index,
char * _common_color )

Emit ASM code for instruction COLOR SPRITE [expression] TO [expression].

This function outputs the ASM code to change the common sprite color, among those available. It should be used where the command is invoked with expressions.

Parameters
_environmentCurrent calling environment
_indexExpression with the index of common color to set
_common_colorExpression with the index of the color to use

Definition at line 65 of file color_sprite.c.