static int nframes, num_vbl, backbuf;
static uint16_t *vram[] = { (uint16_t*)VRAM_LFB_FB0_ADDR, (uint16_t*)VRAM_LFB_FB1_ADDR };
static int nframes, num_vbl, backbuf;
static uint16_t *vram[] = { (uint16_t*)VRAM_LFB_FB0_ADDR, (uint16_t*)VRAM_LFB_FB1_ADDR };
/* sprite setup */
spr_setup(16, 16, spr_game_pixels, spr_game_cmap);
/* sprite setup */
spr_setup(16, 16, spr_game_pixels, spr_game_cmap);
tex = iwram_sbrk(32 * 32);
memcpy(tex, tuncross_pixels, 32 * 32);
tex = iwram_sbrk(32 * 32);
memcpy(tex, tuncross_pixels, 32 * 32);
#define TUN_U(x) ((x) & 0x3f)
#define TUN_V(x) (((x) >> 6) & 0x3ff)
#define TEXEL(x, y, lvl) \
#define TUN_U(x) ((x) & 0x3f)
#define TUN_V(x) (((x) >> 6) & 0x3ff)
#define TEXEL(x, y, lvl) \
__attribute__((noinline, target("arm"), section(".iwram")))
static void draw_tunnel(void)
__attribute__((noinline, target("arm"), section(".iwram")))
static void draw_tunnel(void)