# HG changeset patch # User Mike Pavone # Date 1357052688 28800 # Node ID 4a400aec81bb47d09e8531bd41a2ea1e42819278 # Parent 20e77044e861ba8edb588db92fdd0096a6ffa1e1 Bail out of disassembly of a particular stream when we hit an invalid instruction diff -r 20e77044e861 -r 4a400aec81bb dis.c --- a/dis.c Tue Jan 01 07:03:52 2013 -0800 +++ b/dis.c Tue Jan 01 07:04:48 2013 -0800 @@ -133,7 +133,7 @@ //printf("%X: %s\n", instbuf.address, disbuf); check_reference(&instbuf, &(instbuf.src)); check_reference(&instbuf, &(instbuf.dst)); - if (instbuf.op == M68K_ILLEGAL || instbuf.op == M68K_RTS || instbuf.op == M68K_RTE) { + if (instbuf.op == M68K_ILLEGAL || instbuf.op == M68K_RTS || instbuf.op == M68K_RTE || instbuf.op == M68K_INVALID) { break; } else if (instbuf.op == M68K_BCC || instbuf.op == M68K_DBCC || instbuf.op == M68K_BSR) { if (instbuf.op == M68K_BCC && instbuf.extra.cond == COND_TRUE) {