Main Page   Compound List   File List   Header Files   File Members  

cgb.h File Reference

Support for Color GameBoy. More...


Defines

#define RGB (r, g, b)
Macro to create a palette entry out of the color components.

#define RGB_RED
Common colors based on the EGA default palette.


Functions

void set_bkg_palette (UINT8 first_palette, UINT8 nb_palettes, UINT16 *rgb_data)
Set bkg palette(s).

void set_sprite_palette (UINT8 first_palette, UINT8 nb_palettes, UINT16 *rgb_data)
Set sprite palette(s).

void set_bkg_palette_entry (UINT8 palette, UINT8 entry, UINT16 rgb_data)
Set a bkg palette entry.

void set_sprite_palette_entry (UINT8 palette, UINT8 entry, UINT16 rgb_data)
Set a sprite palette entry.

void cpu_slow (void)
Set CPU speed to slow operation. More...

void cpu_fast (void)
Set CPU speed to fast operation. More...

void cgb_compatibility (void)
Set defaults compatible with normal GameBoy.


Detailed Description

Support for Color GameBoy.

Function Documentation

void cpu_slow (void)

Set CPU speed to slow operation.

Make sure interrupts are disabled before call.

See also:
cpu_fast()

void cpu_fast (void)

Set CPU speed to fast operation.

Make sure interrupts are disabled before call.

See also:
cpu_slow()

Generated at Sun May 7 12:16:58 2000 for gbdk-lib by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999