comparison dis.c @ 47:4b6c667326a1

Fix bug in address visitation in disassembler
author Mike Pavone <pavone@retrodev.com>
date Wed, 12 Dec 2012 20:43:42 -0800
parents ec71370820f2
children 0bdda50c7364
comparison
equal deleted inserted replaced
46:f2aaaf36c875 47:4b6c667326a1
74 } while(def && encoded == NULL); 74 } while(def && encoded == NULL);
75 if (!encoded) { 75 if (!encoded) {
76 break; 76 break;
77 } 77 }
78 for(;;) { 78 for(;;) {
79 visit(instbuf.address); 79 visit(address);
80 next = m68k_decode(encoded, &instbuf, address); 80 next = m68k_decode(encoded, &instbuf, address);
81 address += (next-encoded)*2; 81 address += (next-encoded)*2;
82 encoded = next; 82 encoded = next;
83 m68k_disasm(&instbuf, disbuf); 83 m68k_disasm(&instbuf, disbuf);
84 if (instbuf.op == M68K_ILLEGAL || instbuf.op == M68K_RTS || instbuf.op == M68K_RTE) { 84 if (instbuf.op == M68K_ILLEGAL || instbuf.op == M68K_RTS || instbuf.op == M68K_RTE) {