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

Go to the source code of this file.

Functions

void screen_rows (Environment *_environment, int _rows)
 Emit ASM code for SCREEN ROWS [integer].
void screen_rows_var (Environment *_environment, char *_rows)
 Emit ASM code for SCREEN ROWS [int]x.

Function Documentation

◆ screen_rows()

void screen_rows ( Environment * _environment,
int _rows )

Emit ASM code for SCREEN ROWS [integer].

This function changes the number of lines 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
_rowsNumber of rows

Definition at line 52 of file screen_rows.c.

◆ screen_rows_var()

void screen_rows_var ( Environment * _environment,
char * _rows )

Emit ASM code for SCREEN ROWS [int]x.

This function changes the number of lines 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 rows

Definition at line 67 of file screen_rows.c.