OSDN Git Service

2009-09-15 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl>
Tue, 15 Sep 2009 17:53:40 +0000 (17:53 +0000)
committerhjl <hjl>
Tue, 15 Sep 2009 17:53:40 +0000 (17:53 +0000)
* i386-dis.c (OP_E_memory): Don't print '-' in Intel mode if
disp == -disp.

opcodes/ChangeLog
opcodes/i386-dis.c

index 98b1d60..564c6a6 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * i386-dis.c (OP_E_memory): Don't print '-' in Intel mode if
+       disp == -disp.
+
 2009-09-14  Nick Clifton  <nickc@redhat.com>
 
        * po/nl.po: Updated Dutch translation.
index 30fdf9f..e6b8049 100644 (file)
@@ -11107,7 +11107,7 @@ OP_E_memory (int bytemode, int sizeflag)
                  *obufp++ = '+';
                  *obufp = '\0';
                }
-             else if (modrm.mod != 1)
+             else if (modrm.mod != 1 && disp != -disp)
                {
                  *obufp++ = '-';
                  *obufp = '\0';