This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
m68k disassembly patch
- From: Jason Duerstock <jason dot duerstock+binutils at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 12 May 2010 15:19:50 -0400
- Subject: m68k disassembly patch
The following patch fixes m68k disassembly so that it is easier to
reassemble the disassembled output.
Please let me know if there's anything I need to do to make sure it
gets integrated back into the main source tree, or if there are any
problems with it.
Thanks
Jason
--- opcodes/m68k-dis.c.orig 2010-05-03 14:35:11.000000000 -0400
+++ opcodes/m68k-dis.c 2010-05-03 14:35:47.000000000 -0400
@@ -1623,7 +1623,7 @@
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]);