diff options
| author | serpilliere <fabrice.desclaux@cea.fr> | 2015-10-18 17:44:37 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2015-10-23 10:47:24 +0200 |
| commit | 915ad8950a21c688a8c147c8d7ccda78d10306fe (patch) | |
| tree | f3444f832d9ce332ce661065610aa92b0bffc838 /miasm2/arch/x86/sem.py | |
| parent | 6a15438526ae033ee910a41ab7e8fe7c255cf289 (diff) | |
| download | miasm-915ad8950a21c688a8c147c8d7ccda78d10306fe.tar.gz miasm-915ad8950a21c688a8c147c8d7ccda78d10306fe.zip | |
Arch/x86/sem: add fchs
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/x86/sem.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index 6dc38efa..f3ede000 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -2399,6 +2399,12 @@ def f2xm1(ir, instr): e += set_float_cs_eip(instr) return e, [] +def fchs(ir, instr): + e = [] + e.append(m2_expr.ExprAff(float_st0, m2_expr.ExprOp('fchs', float_st0))) + e += set_float_cs_eip(instr) + return e, [] + def fsqrt(ir, instr): e = [] @@ -3623,6 +3629,7 @@ mnemo_func = {'mov': mov, 'fcos': fcos, 'fscale': fscale, 'f2xm1': f2xm1, + 'fchs': fchs, 'fsqrt': fsqrt, 'fabs': fabs, 'fnstsw': fnstsw, |