debug print for iwram_brk level
authorJohn Tsiombikas <nuclear@member.fsf.org>
Fri, 21 Oct 2022 22:25:48 +0000 (01:25 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Fri, 21 Oct 2022 22:25:48 +0000 (01:25 +0300)
src/util.c

index 2bd0338..2d98ee8 100644 (file)
@@ -17,6 +17,7 @@ int iwram_brk(void *addr)
        if((char*)addr < &__iheap_start) {
                addr = &__iheap_start;
        }
+       emuprint("iwram brk: %p (sp: %p)", addr, get_sp());
        if(addr > get_sp()) {
                /*return -1;*/
                panic(get_pc(), "iwram_brk (%p) >= sp", addr);