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

Go to the source code of this file.

Functions

void on_proc (Environment *_environment, char *_expression)
 Emit ASM code for ON ... PROC ....
void on_proc_index (Environment *_environment, char *_label)
 Emit ASM code for ... (of ON ... PROC ...).
void on_proc_end (Environment *_environment)
 Emit ASM code for ... (of ON ... PROC ...).

Function Documentation

◆ on_proc()

void on_proc ( Environment * _environment,
char * _expression )

Emit ASM code for ON ... PROC ....

This function outputs the code to implement the call subroutine, calculated by expression.

Parameters
_environmentCurrent calling environment
_expressionExpression with the true / false condition

Definition at line 88 of file on_proc.c.

◆ on_proc_end()

void on_proc_end ( Environment * _environment)

Emit ASM code for ... (of ON ... PROC ...).

This function outputs the code to implement the end of call subroutine by expression.

Parameters
_environmentCurrent calling environment

Definition at line 162 of file on_proc.c.

◆ on_proc_index()

void on_proc_index ( Environment * _environment,
char * _label )

Emit ASM code for ... (of ON ... PROC ...).

This function outputs the code to implement any specific indexed call to subroutine by expression.

Parameters
_environmentCurrent calling environment
_labelProcedure to call

Definition at line 116 of file on_proc.c.