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

Go to the source code of this file.

Functions

void colormap_at (Environment *_environment, int _address)
 Emit ASM implementation for COLORMAP AT [int] instruction.
void colormap_at_var (Environment *_environment, char *_address)
 Emit ASM implementation for COLORMAP AT [expression] instruction.

Function Documentation

◆ colormap_at()

void colormap_at ( Environment * _environment,
int _address )

Emit ASM implementation for COLORMAP AT [int] instruction.

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

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

Definition at line 60 of file colormap_at.c.

◆ colormap_at_var()

void colormap_at_var ( Environment * _environment,
char * _address )

Emit ASM implementation for COLORMAP AT [expression] instruction.

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

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

Definition at line 82 of file colormap_at.c.