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

Go to the source code of this file.

Functions

void color (Environment *_environment, int _index, int _shade)
 Emit ASM code for instruction COLOR [int], [int].
void color_semivars (Environment *_environment, int _index, char *_shade)
 Emit ASM code for instruction COLOR [expression], [expression].
void color_vars (Environment *_environment, char *_index, char *_shade)
 Emit ASM code for instruction COLOR [expression], [expression].

Function Documentation

◆ color()

void color ( Environment * _environment,
int _index,
int _shade )

Emit ASM code for instruction COLOR [int], [int].

This function outputs the ASM code to change the color index, 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
_shadeShade of the common color to set

Definition at line 57 of file color.c.

◆ color_semivars()

void color_semivars ( Environment * _environment,
int _index,
char * _shade )

Emit ASM code for instruction COLOR [expression], [expression].

This function outputs the ASM code to change the common 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 79 of file color.c.

◆ color_vars()

void color_vars ( Environment * _environment,
char * _index,
char * _shade )

Emit ASM code for instruction COLOR [expression], [expression].

This function outputs the ASM code to change the common 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 105 of file color.c.