X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdump.c;h=d371f7306cada04f6180827451aeda035705a58d;hb=c8fdd78cfb5ba3a2afcdbb95e69e49d1c0dc23ed;hp=d00d2743fb1f9000d5fdf1cadc5cc66640889770;hpb=17b48928d6fa43e8eeb24d3894d807475c75de69;p=YACASL2.git diff --git a/src/dump.c b/src/dump.c index d00d274..d371f73 100644 --- a/src/dump.c +++ b/src/dump.c @@ -14,6 +14,7 @@ void dumpmemory(WORD start, WORD end) fprintf(stdout, " %04X", i); } fprintf(stdout, "\n"); + fprintf(stdout, " -------------------------------------------------------------------------------------\n"); /* Memory */ for(i = start; i < end; i++) { if((mod = i % col) == 0 || i == start) { @@ -39,7 +40,7 @@ void dspregister() char *sp, *pr, *fr; for(i = 0; i < GRSIZE; i++ ) { fprintf(stdout, "#%04X: GR%d: ", sys->cpu->pr, i); - print_dumpword(sys->cpu->gr[i], (&execmode)->logical); + print_dumpword(sys->cpu->gr[i], execmode.logical); fprintf(stdout, "\n"); } fprintf(stdout, "#%04X: SP: %6d = #%04X = %s\n",