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

Go to the source code of this file.

Functions

void tiles_at (Environment *_environment, int _address)
 Emit ASM code for TILES AT [int]xx.
void tiles_at_var (Environment *_environment, char *_address)
 Emit ASM code for TILES AT [expression].

Function Documentation

◆ tiles_at()

void tiles_at ( Environment * _environment,
int _address )

Emit ASM code for TILES AT [int]xx.

This function allows you to set the starting address, in memory, for the tiles (for textual mode) and it is the version that is used when the memory is given as a direct number (i.e.: $8400). The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • tilees_address (VT_ADDRESS) - the starting address of text memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

Definition at line 60 of file tiles.c.

◆ tiles_at_var()

void tiles_at_var ( Environment * _environment,
char * _address )

Emit ASM code for TILES AT [expression].

This function allows you to set the starting address, in memory, for the tiles (for textual mode) and it is the version that is used when the memory is given as an expression. The input parameter is decoded and declined according to the hardware limits. So it is not said that exactly the given address is set.

On some machine calling this instruction will define the special variable:

  • tiles_address (VT_ADDRESS) - the starting address of text memory
Parameters
_environmentCurrent calling environment
_addressAddress to use

Definition at line 83 of file tiles.c.