about summary refs log tree commit diff stats
path: root/miasm
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2011-10-19 11:35:43 +0200
committerserpilliere <devnull@localhost>2011-10-19 11:35:43 +0200
commit48b51aa94e4fb02b7170b78feb4d4ae43d2ba42d (patch)
tree19f8fc7678af9f40a160b3dbaa425b19055a613a /miasm
parent99d52112060b795d26a27f70135aaedbc79d2c8c (diff)
downloadfocaccia-miasm-48b51aa94e4fb02b7170b78feb4d4ae43d2ba42d.tar.gz
focaccia-miasm-48b51aa94e4fb02b7170b78feb4d4ae43d2ba42d.zip
fix f2xm1 disasm error
Diffstat (limited to 'miasm')
-rw-r--r--miasm/arch/ia32_arch.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/miasm/arch/ia32_arch.py b/miasm/arch/ia32_arch.py
index d68ca6db..e9c04974 100644
--- a/miasm/arch/ia32_arch.py
+++ b/miasm/arch/ia32_arch.py
@@ -159,7 +159,7 @@ stpeip = "stpeip" #stop eip
 
 unsanity_mnemo = ['nop', 'monitor', 'mwait', 'fadd', 'faddp', 'fiadd', 'fcmovb', 'fcom', 'fcomp', 'fcomip',
                   'fdiv', 'fdivr', 'fidivr', 'fdivrp', 'ficom', 'ficomp', 'fild', 'fist', 'fistp', 'fisttp',
-                  'fld', 'fldcw', 'fld1', 'fldl2t', "fldl2e", "fldpi", "fldlg2", "fldln2", "fldz", 'fldenv', 'fmul', 'fimul', 'fmulp', 'fst', 'fstp', 'fnstcw', 'fnstenv',
+                  'fld', 'fldcw', 'fld1', 'fldl2t', "fldl2e", "fldpi", "fldlg2", "fldln2", "fldz", 'fldenv', 'fmul', 'fimul', 'fmulp', 'fst', 'fstp', 'fnstcw', 'fnstenv', 'f2xm1',
                   'fnstsw', 'fsub', 'fsubr', 'fisubr', 'fsubrp', 'ftst', 'fucom', 'fucompp', 'fxam', 'fxtract', 'fyl2x', 'fyl2xp1', 'fsqrt', 'fsincos', 'fsin', 'fscale',
                   'fcos', 'fdecstp', 'fnop', 'fpatan', 'fprem', 'fprem1', 'fptan', 'frndint', "shl", 'sal', 'sar']
 
@@ -1078,7 +1078,6 @@ class x86allmncs:
         addop("mwait", [0x0F, 0x01, 0xC9], noafs, no_rm         , {}                 ,{}                , {},                         )
 
         #x87 fpu                                                                                        , {}
-        addop("f2xm1", [0xD9, 0xF0],       noafs, no_rm         , {}                 ,{}                , {},                         )
         addop("fabs",  [0xD9, 0xE1],       noafs, no_rm         , {}                 ,{}                , {},                         )
 
         addop("fadd",  [0xD8],             d0,    no_rm         , {sd:(0,2)}         ,{}         , {},                         )
@@ -1170,6 +1169,8 @@ class x86allmncs:
         #ddop("fstenv",[0x9B, 0xD9],       d6,    no_rm         , {}                 ,{wd:False}        , {},                         ) #XXX no mnemo
         addop("fnstenv",[0xD9],            d6,    no_rm         , {}                 ,{wd:False}        , {},                         ) 
 
+        addop("f2xm1", [0xD9, 0xF0],       noafs, no_rm         , {}                 ,{}                , {},                         )
+
         addop("fnop",  [0xD9, 0xD0],       noafs, no_rm         , {}                 ,{sd:False}        , {},                         )
 
         addop("fpatan",[0xD9, 0xF3],       noafs, no_rm         , {}                 ,{sd:False}        , {},                         )