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

Go to the source code of this file.

Functions

void color_background (Environment *_environment, int _index, int _background_color)
 Emit ASM code for instruction COLOR BACKGROUND [int] TO [int]x.
void color_background_vars (Environment *_environment, char *_index, char *_background_color)
 Emit ASM code for instruction COLOR BACKGROUND [expression] TO [expression].

Function Documentation

◆ color_background()

void color_background ( Environment * _environment,
int _index,
int _background_color )

Emit ASM code for instruction COLOR BACKGROUND [int] TO [int]x.

This function outputs the ASM code to change the background color, among those available. It should be used where the command is invoked with a direct integer value.

Parameters
_environmentCurrent calling environment
_indexIndex of the background color
_background_colorIndex of the color to use

Definition at line 52 of file color_background.c.

◆ color_background_vars()

void color_background_vars ( Environment * _environment,
char * _index,
char * _background_color )

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

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

Parameters
_environmentCurrent calling environment
_indexExpression with the index of the background color
_background_colorExpression with the index of the color to use

Definition at line 68 of file color_background.c.