* m68k-dis.c (print_insn_m68k): Emit undefined instructions as

.short directives so that they can be reassembled.
This commit is contained in:
Nick Clifton 2010-05-27 10:43:27 +00:00
parent 1e5b037994
commit d8b24b9569
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-05-27 jason Duerstock <jason.duerstock+binutils@gmail.com>
* m68k-dis.c (print_insn_m68k): Emit undefined instructions as
.short directives so that they can be reassembled.
2010-05-26 Catherine Moore <clm@codesourcery.com>
David Ung <davidu@mips.com>

View File

@ -1626,7 +1626,7 @@ print_insn_m68k (bfd_vma memaddr, disassemble_info *info)
if (val == 0)
/* Handle undefined instructions. */
info->fprintf_func (info->stream, "0%o", (buffer[0] << 8) + buffer[1]);
info->fprintf_func (info->stream, ".short 0x%04x", (buffer[0] << 8) + buffer[1]);
return val ? val : 2;
}