about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/sem.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-07-10 14:38:37 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-07-13 20:30:53 +0200
commitc1980535a872cbd0e8a39b32e16a8e9d318c8134 (patch)
tree9a63804aee2a2d957de1ca1873a32d0ca305d917 /miasm2/arch/x86/sem.py
parent4a1dc7ab1796f5aecb35c2e4633b08f68ab21cef (diff)
downloadmiasm-c1980535a872cbd0e8a39b32e16a8e9d318c8134.tar.gz
miasm-c1980535a872cbd0e8a39b32e16a8e9d318c8134.zip
Jitter: use bignum
Diffstat (limited to 'miasm2/arch/x86/sem.py')
-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)