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

Go to the source code of this file.

Functions

void sprite_expand_horizontal (Environment *_environment, int _sprite)
 Emit ASM code for SPRITE [int] EXPAND HORIZONTAL.
void sprite_expand_horizontal_var (Environment *_environment, char *_sprite)
 Emit ASM code for SPRITE [expression] EXPAND HORIZONTAL.

Function Documentation

◆ sprite_expand_horizontal()

void sprite_expand_horizontal ( Environment * _environment,
int _sprite )

Emit ASM code for SPRITE [int] EXPAND HORIZONTAL.

This function emits a code capable of expanding horizontally a given sprite. The index of sprite is given as a direct integer.

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

Definition at line 52 of file sprite_expand_horizontal.c.

◆ sprite_expand_horizontal_var()

void sprite_expand_horizontal_var ( Environment * _environment,
char * _sprite )

Emit ASM code for SPRITE [expression] EXPAND HORIZONTAL.

This function emits a code capable of expanding horizontally a given sprite. The index of sprite is given as an expression.

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

Definition at line 71 of file sprite_expand_horizontal.c.