RGBGrafx>Macros |
This macro simply inserts a small loop to wait until it is not vblank.
This macro simply inserts a small loop to wait until it is vblank.
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 inserts a small loop to wait until VRAM is available to read or written to.
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.
Copyright 2000 Aaron St.John