From 1513a14c90b9520d506b9528f5609f424c4822dc Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 27 May 2010 10:43:27 +0000 Subject: [PATCH] * m68k-dis.c (print_insn_m68k): Emit undefined instructions as .short directives so that they can be reassembled. --- opcodes/ChangeLog | 5 +++++ opcodes/m68k-dis.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 3b48b759a..c844c8d36 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2010-05-27 jason Duerstock + + * m68k-dis.c (print_insn_m68k): Emit undefined instructions as + .short directives so that they can be reassembled. + 2010-05-26 Catherine Moore David Ung diff --git a/opcodes/m68k-dis.c b/opcodes/m68k-dis.c index 326e42999..e136a2535 100644 --- a/opcodes/m68k-dis.c +++ b/opcodes/m68k-dis.c @@ -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; } -- 2.11.4.GIT