diff options
| author | Ajax <commial@gmail.com> | 2015-11-16 17:45:17 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2015-11-17 10:39:42 +0100 |
| commit | 57d5a9b758d30be4ae607712d3361d678baacdd1 (patch) | |
| tree | 659028f4c1893fc09e474f57187b18b9eef29460 | |
| parent | fbe0eff2e88d2fe1e4e4aad1fe652e190a45e32e (diff) | |
| download | miasm-57d5a9b758d30be4ae607712d3361d678baacdd1.tar.gz miasm-57d5a9b758d30be4ae607712d3361d678baacdd1.zip | |
x86/sem: rewrite xchg with SemBuilder
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/x86/sem.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index c6a4c23c..566fd1fe 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -269,11 +269,10 @@ def mov(ir, instr, a, b): return e, [] -def xchg(ir, instr, a, b): - e = [] - e.append(m2_expr.ExprAff(a, b)) - e.append(m2_expr.ExprAff(b, a)) - return e, [] +@sbuild.parse +def xchg(arg1, arg2): + arg1 = arg2 + arg2 = arg1 def movzx(ir, instr, a, b): |