Mercurial > repos > blastem
changeset 103:a71544cd01ea
Don't pre-emptively translate code at interrupt vectors as some PD ROMs have these pointing at junk. Need some kind of heuristic for detecting garbage if I'm going to translate them ahead of time by default.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 27 Dec 2012 22:48:54 -0800 |
parents | bfaca67eeb78 |
children | a0fdaa134964 |
files | blastem.c dis.c |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/blastem.c Thu Dec 27 22:41:28 2012 -0800 +++ b/blastem.c Thu Dec 27 22:48:54 2012 -0800 @@ -487,12 +487,12 @@ //work RAM context.mem_pointers[1] = ram; uint32_t address; - address = cart[0x68/2] << 16 | cart[0x6A/2]; + /*address = cart[0x68/2] << 16 | cart[0x6A/2]; translate_m68k_stream(address, &context); address = cart[0x70/2] << 16 | cart[0x72/2]; translate_m68k_stream(address, &context); address = cart[0x78/2] << 16 | cart[0x7A/2]; - translate_m68k_stream(address, &context); + translate_m68k_stream(address, &context);*/ address = cart[2] << 16 | cart[3]; translate_m68k_stream(address, &context); m68k_reset(&context);
--- a/dis.c Thu Dec 27 22:41:28 2012 -0800 +++ b/dis.c Thu Dec 27 22:48:54 2012 -0800 @@ -26,7 +26,7 @@ if (is_visited(address)) { return next; } - //printf("deferring %X\n", address); + printf("deferring %X\n", address); deferred * d = malloc(sizeof(deferred)); d->address = address; d->next = next; @@ -84,8 +84,8 @@ next = m68k_decode(encoded, &instbuf, address); address += (next-encoded)*2; encoded = next; - //m68k_disasm(&instbuf, disbuf); - //printf("%X: %s\n", instbuf.address, disbuf); + m68k_disasm(&instbuf, disbuf); + printf("%X: %s\n", instbuf.address, disbuf); if (instbuf.op == M68K_ILLEGAL || instbuf.op == M68K_RTS || instbuf.op == M68K_RTE) { break; } else if (instbuf.op == M68K_BCC || instbuf.op == M68K_DBCC || instbuf.op == M68K_BSR) {