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

Go to the source code of this file.

Functions

void begin_for_step (Environment *_environment, char *_index, char *_from, char *_to, char *_step)
 Emit ASM code for FOR ... STEP ... NEXT.

Function Documentation

◆ begin_for_step()

void begin_for_step ( Environment * _environment,
char * _index,
char * _from,
char * _to,
char * _step )

Emit ASM code for FOR ... STEP ... NEXT.

This function outputs the code to implement the starting point of a FOR ... STEP ... NEXT loop

Parameters
_environmentCurrent calling environment
_indexVariable to use as index
_fromStarting value
_toEnding value
_stepStep value

Definition at line 49 of file begin_for_step.c.