Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
196:f8955d33486d | 197:7c227a8ec53d |
---|---|
3780 } else { | 3780 } else { |
3781 printf("attempt to translate non-memory address: %X\n", address); | 3781 printf("attempt to translate non-memory address: %X\n", address); |
3782 exit(1); | 3782 exit(1); |
3783 } | 3783 } |
3784 do { | 3784 do { |
3785 if (opts->address_log) { | |
3786 fprintf(opts->address_log, "%X\n", address); | |
3787 } | |
3785 do { | 3788 do { |
3786 if (dst_end-dst < MAX_NATIVE_SIZE) { | 3789 if (dst_end-dst < MAX_NATIVE_SIZE) { |
3787 if (dst_end-dst < 5) { | 3790 if (dst_end-dst < 5) { |
3788 puts("out of code memory, not enough space for jmp to next chunk"); | 3791 puts("out of code memory, not enough space for jmp to next chunk"); |
3789 exit(1); | 3792 exit(1); |