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

Go to the source code of this file.

Functions

void sprite_compress_vertical (Environment *_environment, int _sprite)
 Emit ASM code for SPRITE [int] CPMPRESS VERTICAL.
void sprite_compress_vertical_var (Environment *_environment, char *_sprite)
 Emit ASM code for SPRITE [expression] COMPRESS VERTICAL.

Function Documentation

◆ sprite_compress_vertical()

void sprite_compress_vertical ( Environment * _environment,
int _sprite )

Emit ASM code for SPRITE [int] CPMPRESS VERTICAL.

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

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

Definition at line 52 of file sprite_compress_vertical.c.

◆ sprite_compress_vertical_var()

void sprite_compress_vertical_var ( Environment * _environment,
char * _sprite )

Emit ASM code for SPRITE [expression] COMPRESS VERTICAL.

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

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

Definition at line 65 of file sprite_compress_vertical.c.