7 uint16_t vblperf_color[] = {0x3e0, 0xffc0, 0x3ff, 0x1ff, 0x001f, 0xf81f};
9 static void vblperf_intr(void)
14 void vblperf_start(int palidx)
16 vblperf_palptr = (uint16_t*)CRAM_BG_ADDR + palidx;
18 REG_DISPSTAT |= DISPSTAT_IEN_VBLANK;
19 interrupt(INTR_VBLANK, vblperf_intr);
24 void vblperf_stop(void)
27 REG_DISPSTAT &= ~DISPSTAT_IEN_VBLANK;
28 interrupt(INTR_VBLANK, 0);
34 __attribute__((target("arm")))
35 void emuprint(const char *fmt, ...)
40 va_start(arg_list, fmt);
41 vsnprintf(buf, 128, fmt, arg_list);
52 void emuprint(const char *fmt, ...)