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

Go to the source code of this file.

Functions

Variablespen (Environment *_environment)
 Emit ASM code for = SPEN().

Function Documentation

◆ spen()

Variable * spen ( Environment * _environment)

Emit ASM code for = SPEN().

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 54 of file spen.c.