summaryrefslogtreecommitdiff
path: root/m68k_to_x86.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-01-17 20:00:07 -0800
committerMike Pavone <pavone@retrodev.com>2013-01-17 20:00:07 -0800
commitcaad3a07a1d56b9f455667fef9e63e3be62454f7 (patch)
tree37bc284fc35fb0f9f59e4c3c198353de5c8c068a /m68k_to_x86.c
parentf6ebaabe9ee2703a6d12162310d058f9159ed770 (diff)
Add instruction address logging to translator and support for reading an address log to the disassembler
Diffstat (limited to 'm68k_to_x86.c')
-rw-r--r--m68k_to_x86.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/m68k_to_x86.c b/m68k_to_x86.c
index 007c3f3..377c0da 100644
--- a/m68k_to_x86.c
+++ b/m68k_to_x86.c
@@ -3782,6 +3782,9 @@ uint8_t * translate_m68k_stream(uint32_t address, m68k_context * context)
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) {