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

Go to the source code of this file.

Functions

void color_border (Environment *_environment, int _color)
 Emit ASM code for instruction COLOR BORDER [int]x.
void color_border_var (Environment *_environment, char *_color)
 Emit ASM code for instruction COLOR BORDER [expression].

Function Documentation

◆ color_border()

void color_border ( Environment * _environment,
int _color )

Emit ASM code for instruction COLOR BORDER [int]x.

This function outputs the ASM code to change the border color, where the command is invoked with a direct integer value.

Parameters
_environmentCurrent calling environment
_colorIndex color to use.

Definition at line 51 of file color_border.c.

◆ color_border_var()

void color_border_var ( Environment * _environment,
char * _color )

Emit ASM code for instruction COLOR BORDER [expression].

This function outputs the ASM code to change the border color, where the command is invoked with an expression.

Parameters
_environmentCurrent calling environment
_colorVariable with the expression.

Definition at line 70 of file color_border.c.