extern char patterns, patterns_end;
extern char palette;
extern char map, map_end;
u16 pad0;
u8 angle;
int main(void)
{
angle = 0;
while (1)
{
if (pad0)
{
switch (pad0)
{
angle++;
break;
angle--;
break;
}
}
}
return 0;
}
void bgInitMapTileSet7(u8 *tileSource, u8 *mapSource, u8 *tilePalette, u16 tileSize, u16 address)
Initializes a Tile & Map Set and Loads the Tile & Map GFX into VRAM for Mode 7.
void WaitForVBlank(void)
Waits for a VBlank interrupt.
the master include file for snes applications.
void setMode7Rot(u8 angle)
Change angle view in mode 7 with matrix transformation.
void setScreenOn(void)
Put screen On.
void setMode7(u8 mode)
Put screen in mode 7 with generic init.