Mercurial > repos > blastem
diff blastem.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 | c615061f7914 |
children | 209a37eed3e7 |
line wrap: on
line diff
--- a/blastem.c Thu Jan 17 08:19:29 2013 -0800 +++ b/blastem.c Thu Jan 17 20:00:07 2013 -0800 @@ -803,12 +803,16 @@ 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 @@ 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;