X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fdebug.c;h=2370bfaf6c907bdb304f2ad3860fb5e0abb8e58d;hb=7fd5d17b31f3ccdbc3eaf7e9761ddb41fa994863;hp=79f201beead61bb7faea056d889d770f58810238;hpb=5fadfb1c3732909f8e870954aeea82b761457784;p=picodrive.git diff --git a/pico/debug.c b/pico/debug.c index 79f201b..2370bfa 100644 --- a/pico/debug.c +++ b/pico/debug.c @@ -1,5 +1,10 @@ -// some debug code, just for fun of it -// (c) Copyright 2008 notaz, All rights reserved. +/* + * debug stuff + * (C) notaz, 2006-2009 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. + */ #include "pico_int.h" #include "sound/ym2612.h" @@ -56,6 +61,7 @@ char *PDebugMain(void) char *PDebug32x(void) { +#ifndef NO_32X char *dstrp = dstr; unsigned short *r; int i; @@ -85,6 +91,9 @@ char *PDebug32x(void) sprintf(dstrp, "gb,vb %08x,%08x %08x,%08x\n", sh2_gbr(0), sh2_vbr(0), sh2_gbr(1), sh2_vbr(1)); MVP; sprintf(dstrp, "IRQs/mask: %02x/%02x %02x/%02x\n", Pico32x.sh2irqi[0], Pico32x.sh2irq_mask[0], Pico32x.sh2irqi[1], Pico32x.sh2irq_mask[1]); MVP; +#else + dstr[0] = 0; +#endif return dstr; } @@ -329,6 +338,7 @@ void PDebugDumpMem(void) dump_ram_noswab(Pico_mcd->bram, "dumps/bram.bin"); } +#ifndef NO_32X if (PicoAHW & PAHW_32X) { dump_ram(Pico32xMem->sdram, "dumps/sdram.bin"); @@ -338,6 +348,7 @@ void PDebugDumpMem(void) dump_ram(Pico32xMem->data_array[0], "dumps/data_array0.bin"); dump_ram(Pico32xMem->data_array[1], "dumps/data_array1.bin"); } +#endif } void PDebugZ80Frame(void)