From 05203043766029ac32e5faded4ea116b94e9e0ac Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 15 Sep 2009 17:53:40 +0000 Subject: [PATCH] 2009-09-15 H.J. Lu * i386-dis.c (OP_E_memory): Don't print '-' in Intel mode if disp == -disp. --- opcodes/ChangeLog | 5 +++++ opcodes/i386-dis.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 98b1d602bb7..564c6a6a37d 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2009-09-15 H.J. Lu + + * i386-dis.c (OP_E_memory): Don't print '-' in Intel mode if + disp == -disp. + 2009-09-14 Nick Clifton * po/nl.po: Updated Dutch translation. diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 30fdf9f752b..e6b80497d4d 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -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'; -- 2.30.2