changeset 2614:c5314c0779c2

Extended debug output in debug mode of new 68K core
author Michael Pavone <pavone@retrodev.com>
date Mon, 17 Feb 2025 23:40:14 -0800
parents 1fdf7acc5165
children cbd54de385d3
files m68k_util.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/m68k_util.c	Sun Feb 16 11:54:40 2025 -0800
+++ b/m68k_util.c	Mon Feb 17 23:40:14 2025 -0800
@@ -27,7 +27,9 @@
 		m68k_decode(debug_disasm_fetch, context, &inst, tmp);
 		static char disasm_buf[256];
 		m68k_disasm(&inst, disasm_buf);
-		printf("Fetch %05X: %04X - %s, d0=%X, d2=%X, d3=%X, d4=%X, d6=%X, xflag=%d\n", tmp, context->scratch1, disasm_buf, context->dregs[0], context->dregs[2], context->dregs[3], context->dregs[4], context->dregs[6], context->xflag);
+		printf("Fetch %05X: %04X - %s, d0=%X, d1=%X, d2=%X, d3=%X, d4=%X, d6=%X, a7=%X, xflag=%d\n", tmp, context->scratch1, disasm_buf, context->dregs[0], context->dregs[1], context->dregs[2], context->dregs[3], context->dregs[4], context->dregs[6], context->aregs[7], context->xflag);
+	} else {
+		printf("Read %05X: %04X\n", tmp, context->scratch1);
 	}
 #endif
 }