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

Go to the source code of this file.

Functions

void sprite_at (Environment *_environment, int _sprite, int _x, int _y)
 Emit ASM code for SPRITE [int] AT ([int],[int]).
void sprite_at_vars (Environment *_environment, char *_sprite, char *_x, char *_y)
 Emit ASM code for SPRITE [expression] AT ([expression],[expression]).

Function Documentation

◆ sprite_at()

void sprite_at ( Environment * _environment,
int _sprite,
int _x,
int _y )

Emit ASM code for SPRITE [int] AT ([int],[int]).

This function emits a code capable of position a sprite to the (x,y) on the screen. This version is suitable when an integer number is used.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite to position (0...7)
_xThe abscissa of the sprite
_yThe ordinate of the sprite

Definition at line 43 of file sprite_at.c.

◆ sprite_at_vars()

void sprite_at_vars ( Environment * _environment,
char * _sprite,
char * _x,
char * _y )

Emit ASM code for SPRITE [expression] AT ([expression],[expression]).

This function emits a code capable of position a sprite to the (x,y) on the screen. This version is suitable when an expression is used.

Parameters
_environmentCurrent calling environment
_spriteExpression with the index of the sprite to position (0...7)
_xExpression with the abscissa of the sprite
_yExpression with the ordinate of the sprite

Definition at line 47 of file sprite_at.c.