#include "sprites.inc"
#define ADRBG1 0x2000
int main(void)
{
while (1)
{
}
}
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.
u16 snes_vblank_count
Number of VBL since consoleInit called (16 bits longs so reset each 18 minutes in NTSC)
void WaitForVBlank(void)
Waits for a VBlank interrupt.
the master include file for snes applications.
t_sprites oambuffer[128]
Sprite Table (from no$sns help file) Contains data for 128 OBJs. OAM Size is 512+32 Bytes....
void oamVramQueueUpdate(void)
Update VRAM graphics for sprites 32x32, 16x16 and 8x8 (can but call in Vblank if needed).
#define OBJ_SIZE8_L16
default OAM size 8x8 (SM) and 16x16 (LG) pix for OBJSEL register
Definition sprite.h:39
#define OBJ_PAL(palofs)
Definition sprite.h:55
void oamInitDynamicSpriteEndFrame(void)
Must be call at the end of the frame, initialize the dynamic sprite engine for the next frame.
void oamInitDynamicSprite(u16 gfxsp0adr, u16 gfxsp1adr, u16 oamsp0init, u16 oamsp1init, u8 oamsize)
initialize the dynamic sprite engine with each sprite size entries
void oamDynamic16Draw(u16 id)
Add a 16x16 sprite on screen. oambuffer[id] needs to be populate before.
Dynamic sprite definition (16 bytes)
Definition sprite.h:64
u16 oamframeid
4 frame index in graphic file of the sprite
Definition sprite.h:67
s16 oamx
0 x position on the screen
Definition sprite.h:65
u8 * oamgraphics
8..11 pointer to graphic file
Definition sprite.h:70
s16 oamy
2 y position on the screen
Definition sprite.h:66
u8 oamattribute
6 sprite attribute value (vhoopppc v : vertical flip h: horizontal flip o: priority bits p: palette n...
Definition sprite.h:68
u8 oamrefresh
7 =1 if we need to load graphics from graphic file
Definition sprite.h:69
void setScreenOn(void)
Put screen On.
#define setPalette(palette, paletteEntry, paletteSize)
Change a palette in CGRAM.
Definition video.h:390
void setMode(u8 mode, u8 size)
Set the SNES hardware to operate in new display mode.