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. |
void cpu_slow (void) |
Set CPU speed to slow operation.
Make sure interrupts are disabled before call.
void cpu_fast (void) |
Set CPU speed to fast operation.
Make sure interrupts are disabled before call.