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

Go to the source code of this file.

Functions

void next_raster_at_with (Environment *_environment, int _position, char *_label)
 Emit ASM code for NEXT RASTER AT [int] WITH [label].
void next_raster_at_with_var (Environment *_environment, char *_position, char *_label)
 Emit ASM code for NEXT RASTER AT [expresssion] WITH label.

Function Documentation

◆ next_raster_at_with()

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

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

This function outputs a code that puts the raster routine on hold for the vertical raster to arrive at a new _position with the execution of a different code from the previous one. 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 53 of file next_raster_at.c.

◆ next_raster_at_with_var()

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

Emit ASM code for NEXT RASTER AT [expresssion] WITH label.

This function outputs a code that puts the raster routine on hold for the vertical raster to arrive at a new _position with the execution of a different code from the previous one. 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 69 of file next_raster_at.c.