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

Go to the source code of this file.

Functions

void goto_label (Environment *_environment, char *_label)
 Emit ASM code for GOTO [label].
void goto_number (Environment *_environment, int _number)
 Emit ASM code for GOTO [number].

Function Documentation

◆ goto_label()

void goto_label ( Environment * _environment,
char * _label )

Emit ASM code for GOTO [label].

This function can be used to issue a code equivalent to the unconditional jump to an alphanumeric label, previously or subsequently defined, with the syntax of the labels.

Parameters
_environmentCurrent calling environment
_labelLabel where to jump to

Definition at line 115 of file goto.c.

◆ goto_number()

void goto_number ( Environment * _environment,
int _number )

Emit ASM code for GOTO [number].

This function can be used to issue a code equivalent to the unconditional jump to an alphanumeric label, previously or subsequently defined, with the syntax of the labels.

Parameters
_environmentCurrent calling environment
_labelLabel where to jump to

Definition at line 148 of file goto.c.