SPR_2Polygon (...); / * Various sprite commands * / SPR_2NormSpr(...); /* . . .SPR_2CloseCommand (); / * Close command writing * /
SCL_DisplayFrame (); / * Wait for V-BLANK interrupt * / / * Display sprite and scroll * / } }
−V blank processing routine (source file different from the above main) −
#include <machine.h> #include "sega_spr.h" #include "sega_scl.h"
#pragma interrupt(VbStart) #pragma interrupt(VbEnd)
void VbStart(void) { SCL_VblankStart (); / * V blank start VDP interrupt processing * / -------- / * Other V blank start processing * / }
void VbEnd(void) { SCL_VblankEnd (); / * V blank end VDP interrupt processing * / -------- }