extern char soundbrr, soundbrrend;
extern char snesfont, snespal;
unsigned short bgcolor = 128;
u8 keyapressed = 0;
int main(void)
{
while (1)
{
{
if (keyapressed == 0)
{
keyapressed = 1;
bgcolor += 16;
}
}
else
keyapressed = 0;
}
return 0;
}
void bgSetGfxPtr(u8 bgNumber, u16 address)
Definition of each background address.
void bgSetDisable(u8 bgNumber)
Disable a BG in the actual SNES mode.
void bgSetMapPtr(u8 bgNumber, u16 address, u8 mapSize)
Change Background Map address.
void consoleSetTextVramAdr(u16 vramfont)
Change text graphics address (4K aligned)
void consoleInitText(u8 palnum, u8 palsize, u8 *tilfont, u8 *palfont)
Initialize the Text System.
void consoleDrawText(u16 x, u16 y, char *fmt,...)
Output formatted string on a screen (tiles mode)
void consoleSetTextOffset(u16 offsetfont)
Change text Background map address for display (must be BG address)
void consoleSetTextVramBGAdr(u16 offsetfont)
Change text Background map address for display (must be BG address)
void WaitForVBlank(void)
Waits for a VBlank interrupt.
the master include file for snes applications.
void spcAllocateSoundRegion(u8 size)
Set the size of the sound region.
void spcSetSoundEntry(u8 vol, u8 panning, u8 pitch, u16 length, u8 *sampleaddr, brrsamples *ptr)
set the values and address of the SOUND TABLE for a sound entry
void spcPlaySound(u8 sndIndex)
Play sound from memory (using default arguments)
void spcProcess(void)
Process messages This function will try to give messages to the spc until a few scanlines pass.
void spcBoot(void)
boots the spc700 with sm-spc. call once at startup
brr sample sound header(8 bytes)
Definition sound.h:51
#define setPaletteColor(paletteEntry, paletteColor)
Change a color palette in CGRAM.
Definition video.h:397
void setScreenOn(void)
Put screen On.
void setMode(u8 mode, u8 size)
Set the SNES hardware to operate in new display mode.