iwram_brk/iwram_sbrk
[gbajam21] / src / gamescr.c
index e5dd8e4..3941883 100644 (file)
@@ -7,7 +7,7 @@
 #include "intr.h"
 #include "debug.h"
 
-static unsigned char tex[32 * 32] __attribute__((section(".iwram")));
+static unsigned char *tex;//[32 * 32] __attribute__((section(".iwram")));
 
 void gamescr(void)
 {
@@ -31,6 +31,7 @@ void gamescr(void)
        fillblock_16byte(vram[0], 0xffffffff, 240 * 160 / 16);
        fillblock_16byte(vram[1], 0xffffffff, 240 * 160 / 16);
 
+       tex = iwram_sbrk(32 * 32);
        memcpy(tex, tuncross_pixels, 32 * 32);
 
        nframes = 0;