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

Go to the source code of this file.

Functions

void wait_ticks (Environment *_environment, int _timing)
 Emit ASM code for WAIT # [integer] TICKS.
void wait_ticks_var (Environment *_environment, char *_timing)
 Emit ASM code for WAIT [expression] TICKS.

Function Documentation

◆ wait_ticks()

void wait_ticks ( Environment * _environment,
int _timing )

Emit ASM code for WAIT # [integer] TICKS.

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 49 of file wait_ticks.c.

◆ wait_ticks_var()

void wait_ticks_var ( Environment * _environment,
char * _timing )

Emit ASM code for WAIT [expression] TICKS.

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 64 of file wait_ticks.c.