This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]