extern char patterns, patterns_end;
extern char palette, palette_end;
extern char map, map_end;
extern const unsigned char hdmaGradientList[];
u8 pada,padb;
u16 pad0;
int main(void)
{
bgInitTileSet(0, &patterns, &palette, 0, (&patterns_end - &patterns), (&palette_end - &palette), BG_16COLORS, 0x4000);
pada=0; padb=0;
while (1)
{
if (!pada) {
pada=1;
}
}
else pada=0;
padb=1;
}
else padb=0;
}
return 0;
}
void bgSetDisable(u8 bgNumber)
Disable a BG in the actual SNES mode.
void bgInitMapSet(u8 bgNumber, u8 *mapSource, u16 mapSize, u8 sizeMode, u16 address)
Initializes a Map Set and loads it into SNES VRAM.
void bgInitTileSet(u8 bgNumber, u8 *tileSource, u8 *tilePalette, u8 paletteEntry, u16 tileSize, u16 paletteSize, u16 colorMode, u16 address)
Initializes a Tile Set and Loads the Tile GFX into VRAM.
void setModeHdmaColor(u8 *hdmatable)
Do a color gradient effect on screen (with color 0). Use HDMA Channels 6.
void setModeHdmaReset(u8 channels)
Reset or Set HDMA channels.
void WaitForVBlank(void)
Waits for a VBlank interrupt.
the master include file for snes applications.
void setScreenOn(void)
Put screen On.
void setMode(u8 mode, u8 size)
Set the SNES hardware to operate in new display mode.