diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2015-01-07 17:33:09 +0100 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2015-01-23 17:24:42 +0100 |
| commit | e10b597081d12e3f384c6a5571a6b53d93082a74 (patch) | |
| tree | 122fc2b7b70480919667daec69d5d28ace9b5d42 /example/asm_armt.py | |
| parent | aa289ef784a398d136f5c57edac4c8eccf0f35c0 (diff) | |
| download | miasm-e10b597081d12e3f384c6a5571a6b53d93082a74.tar.gz miasm-e10b597081d12e3f384c6a5571a6b53d93082a74.zip | |
Example/Asm_ARMT: Reorganize and remove unused imports
Diffstat (limited to 'example/asm_armt.py')
| -rw-r--r-- | example/asm_armt.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/example/asm_armt.py b/example/asm_armt.py index 1c810e5b..f4ce6d2d 100644 --- a/example/asm_armt.py +++ b/example/asm_armt.py @@ -1,12 +1,14 @@ #! /usr/bin/env python +from pdb import pm + +from elfesteem.strpatchwork import StrPatchwork + from miasm2.core.cpu import parse_ast -from miasm2.arch.arm.arch import mn_armt, base_expr, variable +from miasm2.arch.arm.arch import mn_armt, 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 -from pdb import pm my_mn = mn_armt @@ -14,11 +16,11 @@ reg_and_id = dict(mn_armt.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) |