about summary refs log tree commit diff stats
path: root/example/asm_arm.py
diff options
context:
space:
mode:
authorCamille Mougey <camille.mougey@cea.fr>2015-01-07 17:32:43 +0100
committerCamille Mougey <camille.mougey@cea.fr>2015-01-23 17:24:42 +0100
commitaa289ef784a398d136f5c57edac4c8eccf0f35c0 (patch)
treeb71c183636c8513c9fe962115299426ff651e5f2 /example/asm_arm.py
parent469a2cc1f5da9dc5157eaf9dd10bb6c1a0cfa334 (diff)
downloadmiasm-aa289ef784a398d136f5c57edac4c8eccf0f35c0.tar.gz
miasm-aa289ef784a398d136f5c57edac4c8eccf0f35c0.zip
Example/Asm_ARM: Reorganize and remove unused imports
Diffstat (limited to '')
-rw-r--r--example/asm_arm.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/example/asm_arm.py b/example/asm_arm.py
index e9ffa330..28af59fb 100644
--- a/example/asm_arm.py
+++ b/example/asm_arm.py
@@ -1,11 +1,11 @@
 #! /usr/bin/env python
+from elfesteem.strpatchwork import StrPatchwork
 
 from miasm2.core.cpu import parse_ast
-from miasm2.arch.arm.arch import mn_arm, base_expr, variable
+from miasm2.arch.arm.arch import mn_arm, base_expr
 from miasm2.core import parse_asm
-from miasm2.expression.expression import *
+import miasm2.expression.expression as m2_expr
 from miasm2.core import asmbloc
-from elfesteem.strpatchwork import StrPatchwork
 
 my_mn = mn_arm
 
@@ -13,11 +13,11 @@ reg_and_id = dict(mn_arm.regs.all_regs_ids_byname)
 
 
 def my_ast_int2expr(a):
-    return ExprInt32(a)
+    return m2_expr.ExprInt32(a)
 
 
 def my_ast_id2expr(t):
-    return reg_and_id.get(t, ExprId(t, size=32))
+    return reg_and_id.get(t, m2_expr.ExprId(t, size=32))
 
 my_var_parser = parse_ast(my_ast_id2expr, my_ast_int2expr)
 base_expr.setParseAction(my_var_parser)