X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Futil.c;h=fa5b4b586bf0228bf15d4951af95d68312e94733;hb=097d03fa2406fca819b27b698ffb1cfc8ac445c2;hp=c734f85ebbe0a248bfe01bd71af26912eb671e3c;hpb=0ff927162004fe6b5d0022000284a1bdb306960e;p=gbajam22 diff --git a/src/util.c b/src/util.c index c734f85..fa5b4b5 100644 --- a/src/util.c +++ b/src/util.c @@ -3,7 +3,13 @@ #include "util.h" #include "debug.h" +#ifdef BUILD_GBA extern char __iheap_start; +#else +#define IWRAM_POOL_SZ 32768 +#define __iheap_start iwram[0] +static char iwram[IWRAM_POOL_SZ]; +#endif static char *top = &__iheap_start; int iwram_brk(void *addr)