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

Go to the source code of this file.

Functions

void screen_columns (Environment *_environment, int _columns)
 Emit ASM code for SCREEN COLUMNS [integer].
void screen_columns_var (Environment *_environment, char *_columns)
 Emit ASM code for SCREEN COLUMNS [int]x.

Function Documentation

◆ screen_columns()

void screen_columns ( Environment * _environment,
int _columns )

Emit ASM code for SCREEN COLUMNS [integer].

This function changes the number of columns that can be displayed. Depending on the hardware, the effect can be different as different are the acceptable values. This version is the one called when an integer number of lines is given in the program.

Parameters
_environmentCurrent calling environment
_columnsNumber of columns

Definition at line 72 of file screen_columns.c.

◆ screen_columns_var()

void screen_columns_var ( Environment * _environment,
char * _columns )

Emit ASM code for SCREEN COLUMNS [int]x.

This function changes the number of columns that can be displayed. Depending on the hardware, the effect can be different as different are the acceptable values. This version is the one called when an expression is given in the program.

Parameters
_environmentCurrent calling environment
_rowsNumber of columns

Definition at line 91 of file screen_columns.c.