diff dis.c @ 111:8b50d2c975b2

Fix decoding of Scc
author Mike Pavone <pavone@retrodev.com>
date Fri, 28 Dec 2012 15:34:24 -0800
parents a71544cd01ea
children e821b6fde0e4
line wrap: on
line diff
--- a/dis.c	Fri Dec 28 15:16:36 2012 -0800
+++ b/dis.c	Fri Dec 28 15:34:24 2012 -0800
@@ -26,7 +26,7 @@
 	if (is_visited(address)) {
 		return next;
 	}
-	printf("deferring %X\n", address);
+	//printf("deferring %X\n", address);
 	deferred * d = malloc(sizeof(deferred));
 	d->address = address;
 	d->next = next;
@@ -84,8 +84,8 @@
 			next = m68k_decode(encoded, &instbuf, address);
 			address += (next-encoded)*2;
 			encoded = next;
-			m68k_disasm(&instbuf, disbuf);
-			printf("%X: %s\n", instbuf.address, disbuf);
+			//m68k_disasm(&instbuf, disbuf);
+			//printf("%X: %s\n", instbuf.address, disbuf);
 			if (instbuf.op == M68K_ILLEGAL || instbuf.op == M68K_RTS || instbuf.op == M68K_RTE) {
 				break;
 			} else if (instbuf.op == M68K_BCC || instbuf.op == M68K_DBCC || instbuf.op == M68K_BSR) {