diff m68k_to_x86.c @ 197:7c227a8ec53d

Add instruction address logging to translator and support for reading an address log to the disassembler
author Mike Pavone <pavone@retrodev.com>
date Thu, 17 Jan 2013 20:00:07 -0800
parents f8955d33486d
children c82f65a87a53
line wrap: on
line diff
--- a/m68k_to_x86.c	Thu Jan 17 08:19:29 2013 -0800
+++ b/m68k_to_x86.c	Thu Jan 17 20:00:07 2013 -0800
@@ -3782,6 +3782,9 @@
 		exit(1);
 	}
 	do {
+		if (opts->address_log) {
+			fprintf(opts->address_log, "%X\n", address);
+		}
 		do {
 			if (dst_end-dst < MAX_NATIVE_SIZE) {
 				if (dst_end-dst < 5) {