about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/sem.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-07-16 11:07:56 +0200
committerGitHub <noreply@github.com>2018-07-16 11:07:56 +0200
commit35074d6565d53f6f655af1a101e51ace1015290b (patch)
tree9a63804aee2a2d957de1ca1873a32d0ca305d917 /miasm2/arch/x86/sem.py
parent4a1dc7ab1796f5aecb35c2e4633b08f68ab21cef (diff)
parentc1980535a872cbd0e8a39b32e16a8e9d318c8134 (diff)
downloadmiasm-35074d6565d53f6f655af1a101e51ace1015290b.tar.gz
miasm-35074d6565d53f6f655af1a101e51ace1015290b.zip
Merge pull request #800 from serpilliere/jit_bignum
Jitter: use bignum
Diffstat (limited to '')
-rw-r--r--miasm2/arch/x86/sem.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py
index ef939144..00bdd6d7 100644
--- a/miasm2/arch/x86/sem.py
+++ b/miasm2/arch/x86/sem.py
@@ -2820,8 +2820,8 @@ def das(_, instr):
 def aam(_, instr, src):
     e = []
     tempAL = mRAX[instr.mode][0:8]
-    newEAX = m2_expr.ExprCompose(tempAL % src,
-                                 tempAL / src,
+    newEAX = m2_expr.ExprCompose(m2_expr.ExprOp("umod", tempAL, src),
+                                 m2_expr.ExprOp("udiv", tempAL, src),
                                  mRAX[instr.mode][16:])
     e += [m2_expr.ExprAff(mRAX[instr.mode], newEAX)]
     e += update_flag_arith(newEAX)