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

Go to the source code of this file.

Functions

void sprite_disable (Environment *_environment, int _sprite)
 Emit ASM code for SPRITE [int] DISABLE.
void sprite_disable_var (Environment *_environment, char *_sprite)
 Emit ASM code for SPRITE [expression] DISABLE.

Function Documentation

◆ sprite_disable()

void sprite_disable ( Environment * _environment,
int _sprite )

Emit ASM code for SPRITE [int] DISABLE.

This function emits a code capable of disable the sprite _sprite. This version is suitable when direct integer are used.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite to disable (0...7)

Definition at line 43 of file sprite_disable.c.

◆ sprite_disable_var()

void sprite_disable_var ( Environment * _environment,
char * _sprite )

Emit ASM code for SPRITE [expression] DISABLE.

This function emits a code capable of disable the sprite _sprite. This version is suitable when an expression is used.

Parameters
_environmentCurrent calling environment
_spriteExpression with the index of the sprite to disable (0...7)

Definition at line 47 of file sprite_disable.c.