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

Go to the source code of this file.

Functions

void begin_while (Environment *_environment)
 Emit ASM code for WHILE ....
void begin_while_condition (Environment *_environment, char *_expression)
void end_while (Environment *_environment)
 Emit ASM code for ... WEND.

Function Documentation

◆ begin_while()

void begin_while ( Environment * _environment)

Emit ASM code for WHILE ....

This function outputs the code to implement the starting point of a WHILE...WEND loop.

Parameters
_environmentCurrent calling environment
_expressionExpression to evaluate

Definition at line 83 of file while.c.

◆ begin_while_condition()

void begin_while_condition ( Environment * _environment,
char * _expression )

Definition at line 99 of file while.c.

◆ end_while()

void end_while ( Environment * _environment)

Emit ASM code for ... WEND.

This function outputs the code to implement the end of a while loop, by defining the last point of the loop.

Parameters
_environmentCurrent calling environment

Definition at line 127 of file while.c.