RGBGrafx>Macros

back to the front page


Table Of Contents
RGBG_WaitNVBL
RGBG_WaitVBL
RGB
RGBG_WaitForVRAM
vld

RGBG_WaitNVBL

This macro simply inserts a small loop to wait until it is not vblank.


RGBG_WaitVBL

This macro simply inserts a small loop to wait until it is vblank.


RGB

RGB is a very simple macro. It takes three arguments (red green and blue), and spits out a 'dw' in the format of a Gameboy Color 15-bit palette entry (xbbbbbgggggrrrrr).

Since this macro may cause naming conflicts, you may choose not to include it by setting 'INCLUDE_RGB' to 'FALSE' in rgbgrafx.inc.


RGBG_WaitForVRAM

RGBG_WaitForVRAM inserts a small loop to wait until VRAM is available to read or written to.


vld

The macro vld is meant to be used exactly as the z80 nemonic ld. This macros waits until VRAM is availbe before attempting toexecute, the load, however, so is ideal for read from adn writing to VRAM. Be warned, unless you are loading from A, A is destroyed. Also, interupts (especially the timer interupt) may interfere with vld.

Since this macro may cause naming conflicts, you may choose not to include it by setting 'INCLUDE_VLD' to 'FALSE' in rgbgrafx.inc.