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

Go to the source code of this file.

Functions

Variablexpen (Environment *_environment)
 Emit ASM code for = XPEN().

Function Documentation

◆ xpen()

Variable * xpen ( Environment * _environment)

Emit ASM code for = XPEN().

This function can be used to read the X (horizontal) position of the electronic pen connected to the hardware. The result is stored in a temporary variable.

Parameters
_environmentCurrent calling environment
Returns
Variable* Variable with the result of the reading

Definition at line 128 of file xpen.c.