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

Go to the source code of this file.

Functions

void textmap_at (Environment *_environment, int _address)
 Emit ASM implementation for BITMAP AT [int] instruction.
void textmap_at_var (Environment *_environment, char *_address)
 Emit ASM implementation for BITMAP AT [expression] instruction.

Function Documentation

◆ textmap_at()

void textmap_at ( Environment * _environment,
int _address )

Emit ASM implementation for BITMAP AT [int] instruction.

Emit ASM code for TEXTMAP AT [int]xx.

This function allows you to set the starting address, in memory, for the bitmap and it is the version that is used when the memory is given as a direct number (i.e.: $A000). 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:

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

Definition at line 64 of file textmap_at.c.

◆ textmap_at_var()

void textmap_at_var ( Environment * _environment,
char * _address )

Emit ASM implementation for BITMAP AT [expression] instruction.

Emit ASM code for TEXTMAP AT [expression].

This function allows you to set the starting address, in memory, for the bitmap and it is the version that is used when the memory is given as a expression that involves variables. 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:

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

Definition at line 93 of file textmap_at.c.