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 code for TEXTMAP AT [int]xx.
void textmap_at_var (Environment *_environment, char *_address)
 Emit ASM code for TEXTMAP AT [expression].

Function Documentation

◆ textmap_at()

void textmap_at ( Environment * _environment,
int _address )

Emit ASM code for TEXTMAP AT [int]xx.

This function allows you to set the starting address, in memory, for the text 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:

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

Definition at line 60 of file textmap_at.c.

◆ textmap_at_var()

void textmap_at_var ( Environment * _environment,
char * _address )

Emit ASM code for TEXTMAP AT [expression].

This function allows you to set the starting address, in memory, for the text 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:

  • TEXTADDRESS (VT_ADDRESS) - the starting address of text memory
Parameters
_environmentCurrent calling environment
_addressExpression with address to use

Definition at line 91 of file textmap_at.c.