iwram_brk/iwram_sbrk
[gbajam21] / src / debug.c
index e0696ca..9fd40d3 100644 (file)
@@ -7,9 +7,9 @@
 #include "util.h"
 
 uint16_t vblperf_color[] = {
-       /* grn  cyan  yellow  orng    red    purple ... */
-       /* 60    30     20     15     12      10 ... */
-       0x3e0, 0xffc0, 0x3ff, 0x1ff, 0x001f, 0xf81f, 0xf81f, 0xf81f, 0xf81f, 0xf81f
+       /* grn  blue   cyan  yellow  orng    red     purple  d.green purple ... */
+       /* 60    30     20     15     12      10      8.5     7.5    ... */
+       0x3e0, 0xf863, 0xffc0, 0x3ff, 0x1ff, 0x001f, 0xf81f, 0x1e0, 0xf81f, 0xf81f, 0xf81f
 };
 
 static void vblperf_intr(void)
@@ -39,7 +39,7 @@ void vblperf_stop(void)
 uint32_t panic_regs[16];
 void get_panic_regs(void);
 
-void panic(uint32_t pc, const char *fmt, ...)
+void panic(void *pc, const char *fmt, ...)
 {
        int y;
        va_list ap;
@@ -56,7 +56,7 @@ void panic(uint32_t pc, const char *fmt, ...)
        fillblock_16byte((void*)VRAM_LFB_FB0_ADDR, 0, 240 * 160 / 16);
 
        fillblock_16byte((unsigned char*)VRAM_LFB_FB0_ADDR + 240 * 3, 0xffffffff, 240 / 16);
-       dbg_drawstr(44, 0, " Panic at %08x ", pc);
+       dbg_drawstr(44, 0, " Panic at %p ", pc);
 
        va_start(ap, fmt);
        y = dbg_vdrawstr(0, 12, fmt, ap) + 8;