Mercurial > repos > blastem
diff dis.c @ 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 | 7b1e16e981ef |
children | 8b50d2c975b2 |
line wrap: on
line diff
--- 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) {