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

Go to the source code of this file.

Functions

void gosub_label (Environment *_environment, char *_label)
 Emit ASM code for GOSUB [label].
void gosub_number (Environment *_environment, int _number)
 Emit ASM code for GOSUB [number].

Function Documentation

◆ gosub_label()

void gosub_label ( Environment * _environment,
char * _label )

Emit ASM code for GOSUB [label].

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

Parameters
_environmentCurrent calling environment
_labelLabel where to jump to

Definition at line 116 of file gosub.c.

◆ gosub_number()

void gosub_number ( Environment * _environment,
int _number )

Emit ASM code for GOSUB [number].

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

Parameters
_environmentCurrent calling environment
_labelLabel where to jump to

Definition at line 140 of file gosub.c.