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

Go to the source code of this file.

Functions

void bitmap_enable (Environment *_environment, int _width, int _height, int _colors)
 Emit ASM implementation for BITMAP ENABLE instruction.

Function Documentation

◆ bitmap_enable()

void bitmap_enable ( Environment * _environment,
int _width,
int _height,
int _colors )

Emit ASM implementation for BITMAP ENABLE instruction.

This function can be called to emit the code to enable bitmap graphics on the target machine. Bitmap resolution and colors depends on hardware. Enabling the bitmap also sets the starting address in memory, for those computers that have graphics mapped in memory.

On some machine calling this instruction will define two special variables:

  • BITMAPADDRESS (VT_ADDRESS) - the starting address of bitmap memory
  • COLORMAPADDRESS (VT_ADDRESS) - the starting address of color map memory
Parameters
_environmentCurrent calling environment

Definition at line 145 of file bitmap_enable.c.