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

Go to the source code of this file.

Functions

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

Function Documentation

◆ bitmap_at()

void bitmap_at ( Environment * _environment,
int _address )

Emit ASM implementation for BITMAP AT [int] instruction.

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.: $2000). 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 59 of file bitmap_at.c.

◆ bitmap_at_var()

void bitmap_at_var ( Environment * _environment,
char * _address )

Emit ASM implementation for BITMAP AT [expression] instruction.

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 79 of file bitmap_at.c.