summaryrefslogtreecommitdiff
path: root/opcodes/m68k-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2010-05-27 10:43:27 +0000
committerNick Clifton <nickc@redhat.com>2010-05-27 10:43:27 +0000
commit1513a14c90b9520d506b9528f5609f424c4822dc (patch)
treea36e067da6a8d0e3c0874e7a92b66d2b83f5dec9 /opcodes/m68k-dis.c
parent900b02f8edc4dfaa3679fc87a93a8819eeac803f (diff)
downloadbinutils-redhat-1513a14c90b9520d506b9528f5609f424c4822dc.tar.gz
* m68k-dis.c (print_insn_m68k): Emit undefined instructions as
.short directives so that they can be reassembled.
Diffstat (limited to 'opcodes/m68k-dis.c')
-rw-r--r--opcodes/m68k-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/m68k-dis.c b/opcodes/m68k-dis.c
index 326e429990..e136a2535c 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;
}