m68k disassembly patch

Jason Duerstock jason.duerstock+binutils@gmail.com
Wed May 12 19:20:00 GMT 2010


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]);



More information about the Binutils mailing list