[libcpu] [420] x86: Fix addressing mode disasm to follow AT&T syntax

4 views
Skip to first unread message

lib...@gh11.de

unread,
Apr 25, 2010, 7:56:33 AM4/25/10
to lib...@googlegroups.com
Revision
420
Author
penberg
Date
2010-04-25 04:56:30 -0700 (Sun, 25 Apr 2010)

Log Message

x86: Fix addressing mode disasm to follow AT&T syntax

AT&T syntax uses "(reg,reg)" convention instead of "(reg+reg)".

Signed-off-by: Pekka Enberg <pen...@cs.helsinki.fi>

Modified Paths

Diff

Modified: trunk/arch/x86/x86_disasm.cpp (419 => 420)


--- trunk/arch/x86/x86_disasm.cpp	2010-04-25 11:56:21 UTC (rev 419)
+++ trunk/arch/x86/x86_disasm.cpp	2010-04-25 11:56:30 UTC (rev 420)
@@ -159,10 +159,10 @@
 };
 
 static const char *mem_byte_reg_names[] = {
-	"%bx+si",
-	"%bx+di",
-	"%bp+si",
-	"%bp+di",
+	"%bx,%si",
+	"%bx,%di",
+	"%bp,%si",
+	"%bp,%di",
 	"%si",
 	"%di",
 	NULL,


 
--
Subscription settings: http://groups.google.com/group/libcpu/subscribe?hl=en
Reply all
Reply to author
Forward
0 new messages