#ifndef VGA_UPDATE_H_
#define VGA_UPDATE_H_

#define IOWR_SET_SPRITE(x, y, rom, sprite, flip, color) \
    IOWR_32DIRECT( SPRITE_BUF_BASE, 4*(rom + (sprite<<8)), x + (y<<10) + (flip<<30) + (color<<20) )
#define IOWR_END_IRQ() \
    IOWR_32DIRECT( SPRITE_BUF_BASE, 0, (1<<31) + 1023 + (1023<<10) )

void sprite_refresh();
void sprite_clear_all();

#endif /*VGA_UPDATE_H_*/
