|
ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
|
#include "../../ugbc.h"Go to the source code of this file.
Functions | |
| void | point_at (Environment *_environment, int _x, int _y) |
| Emit ASM code for POINT AT ([int],[int]). | |
| void | point_at_vars (Environment *_environment, char *_x, char *_y) |
| Emit ASM code for POINT AT ([int]x,[int]x). | |
| void point_at | ( | Environment * | _environment, |
| int | _x, | ||
| int | _y ) |
Emit ASM code for POINT AT ([int],[int]).
This function outputs a code that draws a pixel on the screen in bitmap mode on coordinates given explicitly and directly as integers.
| _environment | Current calling environment |
| _x | Abscissa of the point to draw |
| _y | Ordinate of the point |
| EXIT_FAILURE | "CRITICAL: POINT AT (xxx,xxx) needs BITMAP ENABLE" |
Definition at line 77 of file point_at.c.
| void point_at_vars | ( | Environment * | _environment, |
| char * | _x, | ||
| char * | _y ) |
Emit ASM code for POINT AT ([int]x,[int]x).
This function outputs a code that draws a pixel on the screen in bitmap mode on coordinates given explicitly and directly as integers. To do this, it calculates both the position in memory where it will draw and the offset within the byte, storing this information in the following special variables:
| _environment | Current calling environment |
| _x | Expression with the abscissa of the point to draw |
| _y | Expression with the ordinate of the point |
| EXIT_FAILURE | "CRITICAL: POINT AT (xxx,xxx) needs BITMAP ENABLE" |
Definition at line 103 of file point_at.c.