about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2015-10-23 06:58:26 +0200
committerserpilliere <serpilliere@users.noreply.github.com>2015-10-23 06:58:26 +0200
commit97bcdc61e586fccf89e1bd4699c8f4f5314d6dd1 (patch)
treee909d6a7fd5772e687a8368773d6aad1bf35dcbb
parent222226c470d112b4c05735837345f85ee80f02d2 (diff)
parentdbf474cb66502e2494fa9948f0be385f5f71221a (diff)
downloadmiasm-97bcdc61e586fccf89e1bd4699c8f4f5314d6dd1.tar.gz
miasm-97bcdc61e586fccf89e1bd4699c8f4f5314d6dd1.zip
Merge pull request #236 from dynm/learning
Fix arm sem push instruction
-rw-r--r--miasm2/arch/arm/sem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/arch/arm/sem.py b/miasm2/arch/arm/sem.py
index 678f10a8..6838ef66 100644
--- a/miasm2/arch/arm/sem.py
+++ b/miasm2/arch/arm/sem.py
@@ -812,7 +812,7 @@ def push(ir, instr, a):
     regs = list(a.args)
     for i in xrange(len(regs)):
         r = SP + ExprInt32(-4 * (i + 1))
-        e.append(ExprAff(regs[i], ExprMem(r)))
+        e.append(ExprAff(ExprMem(r), regs[i]))
     r = SP + ExprInt32(-4 * len(regs))
     e.append(ExprAff(SP, r))
     return e