diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-01-17 20:00:07 -0800 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-01-17 20:00:07 -0800 |
commit | caad3a07a1d56b9f455667fef9e63e3be62454f7 (patch) | |
tree | 37bc284fc35fb0f9f59e4c3c198353de5c8c068a /blastem.c | |
parent | f6ebaabe9ee2703a6d12162310d058f9159ed770 (diff) |
Add instruction address logging to translator and support for reading an address log to the disassembler
Diffstat (limited to 'blastem.c')
-rw-r--r-- | blastem.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -803,12 +803,16 @@ int main(int argc, char ** argv) int width = -1; int height = -1; int debug = 0; + FILE *address_log = NULL; for (int i = 2; i < argc; i++) { if (argv[i][0] == '-') { switch(argv[i][1]) { case 'd': debug = 1; break; + case 'l': + address_log = fopen("address.log", "w"); + break; default: fprintf(stderr, "Unrecognized switch %s\n", argv[i]); return 1; @@ -828,6 +832,7 @@ int main(int argc, char ** argv) vdp_context v_context; init_x86_68k_opts(&opts); + opts.address_log = address_log; init_68k_context(&context, opts.native_code_map, &opts); init_vdp_context(&v_context); context.next_context = &v_context; |