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

Go to the source code of this file.

Functions

void raster_at (Environment *_environment, char *_label, int _position)
 Emit ASM code for RASTER AT [int] WITH [label].
void raster_at_var (Environment *_environment, char *_label, char *_position)
 Emit ASM code for RASTER AT [expression] WITH label.

Function Documentation

◆ raster_at()

void raster_at ( Environment * _environment,
char * _label,
int _position )

Emit ASM code for RASTER AT [int] WITH [label].

This function outputs assembly code needed to initialize a raster routine. In other words, asynchronously and in parallel with the execution of the main program, the routine starting from the label provided will be executed when the vertical brush on the screen reaches the value of _position. This function is particularly useful when the position is communicated is given as an integer.

Parameters
_environmentCurrent calling environment
_labelLabel to jump to when vertical raster reach the value given
_positionThe vertical position to wait for

Definition at line 55 of file raster_at.c.

◆ raster_at_var()

void raster_at_var ( Environment * _environment,
char * _label,
char * _position )

Emit ASM code for RASTER AT [expression] WITH label.

This function outputs assembly code needed to initialize a raster routine. In other words, asynchronously and in parallel with the execution of the main program, the routine starting from the label provided will be executed when the vertical brush on the screen reaches the value of _position. This function is particularly useful when the position is communicated is given as an expression

Parameters
_environmentCurrent calling environment
_labelLabel to jump to when vertical raster reach the value given
_positionThe vertical position to wait for

Definition at line 73 of file raster_at.c.