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

Go to the source code of this file.

Functions

void wait_cycles (Environment *_environment, int _timing, int _parallel)
 Emit ASM code for WAIT # [integer] CYCLES.
void wait_cycles_var (Environment *_environment, char *_timing, int _parallel)
 Emit ASM code for WAIT [expression] CYCLES.

Function Documentation

◆ wait_cycles()

void wait_cycles ( Environment * _environment,
int _timing,
int _parallel )

Emit ASM code for WAIT # [integer] CYCLES.

This function outputs a code that engages the CPU in a busy wait.

Parameters
_environmentCurrent calling environment
_timingNumber of cycles to wait

Definition at line 103 of file wait_cycles.c.

◆ wait_cycles_var()

void wait_cycles_var ( Environment * _environment,
char * _timing,
int _parallel )

Emit ASM code for WAIT [expression] CYCLES.

This function outputs a code that engages the CPU in a busy wait.

Parameters
_environmentCurrent calling environment
_timingNumber of cycles to wait

Definition at line 159 of file wait_cycles.c.