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

Go to the source code of this file.

Functions

Variableget_timer (Environment *_environment)
 Emit code for = TI.
void set_timer (Environment *_environment, char *_value)
 Emit code for TI =.

Function Documentation

◆ get_timer()

Variable * get_timer ( Environment * _environment)

Emit code for = TI.

Emit code to measure the current value of 60th/50th seconds passed.

Parameters
_environmentCurrent calling environment
Returns
Temporary variable with the number of ticks passed

Definition at line 49 of file timer.c.

◆ set_timer()

void set_timer ( Environment * _environment,
char * _value )

Emit code for TI =.

Emit code to assign the current value of the internal timer.

Parameters
_environmentCurrent calling environment
_valueTime to assign

Definition at line 76 of file timer.c.