* m68k-dis.c (print_insn_m68k): Emit undefined instructions as
authorNick Clifton <nickc@redhat.com>
Thu, 27 May 2010 10:43:27 +0000 (10:43 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 27 May 2010 10:43:27 +0000 (10:43 +0000)
        .short directives so that they can be reassembled.

opcodes/ChangeLog
opcodes/m68k-dis.c

index 3b48b759adb5891bb2e1e883dc24a2a31e16015a..c844c8d36280a4aff8f9a3385fe5de6664f479b7 100644 (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>
 
index 326e4299904dbb2fa19ba00d2aa463cfca1cf936..e136a2535c7ec325e421b42497ba01b117a7ab78 100644 (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;
 }