diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2015-01-07 17:57:06 +0100 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2015-01-23 17:24:42 +0100 |
| commit | d3a8f781deb22070147f59a2e3e2c86af6560723 (patch) | |
| tree | 452e62097ae47ffe009a9f8b4d20baa871c6ce0f | |
| parent | 90083d5d7df06c21d361e20f69b2a2f71e47ccc3 (diff) | |
| download | miasm-d3a8f781deb22070147f59a2e3e2c86af6560723.tar.gz miasm-d3a8f781deb22070147f59a2e3e2c86af6560723.zip | |
Example/Asm_x86: Reorganize and remove unused imports
| -rw-r--r-- | example/asm_x86.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/example/asm_x86.py b/example/asm_x86.py index 77fc61dc..d877ceaa 100644 --- a/example/asm_x86.py +++ b/example/asm_x86.py @@ -1,9 +1,9 @@ #! /usr/bin/env python from miasm2.core.cpu import parse_ast -from miasm2.arch.x86.arch import mn_x86, base_expr, variable +from miasm2.arch.x86.arch import mn_x86, 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 @@ -11,11 +11,11 @@ reg_and_id = dict(mn_x86.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) |