12 static void vblank(void);
17 volatile uint16_t *cptr;
21 REG_WAITCNT = WAITCNT_PREFETCH | WAITCNT_ROM_2_1;
23 cptr = (uint16_t*)CRAM_BG_ADDR;
24 for(i=0; i<256; i++) {
26 *cptr++ = c | ((c >> 1) << 10);
30 mmInitDefault(sound_data, 8);
31 mmStart(MOD_POPCORN, MM_PLAY_LOOP);
35 interrupt(INTR_VBLANK, vblank);
36 REG_DISPSTAT |= DISPSTAT_IEN_VBLANK;
40 gba_colors = scores[10].score & 1;
44 if(init_screens() == -1) {
45 panic(get_pc(), "failed to initialize screens");
48 if(change_screen(find_screen("logo")) == -1) {
49 panic(get_pc(), "failed to find starting screen");
62 static void vblank(void)