diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2015-01-07 17:45:41 +0100 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2015-01-23 17:24:42 +0100 |
| commit | 812e32123dfc0e0aafc606dbc2e154d87f047579 (patch) | |
| tree | 8d3e1bb0681fa50e00ce3471eb7578fddbac9631 /example/asm_box_x86_32.py | |
| parent | 9a718a30ceb8686893b0a4f606d5bfdcde5b9940 (diff) | |
| download | miasm-812e32123dfc0e0aafc606dbc2e154d87f047579.tar.gz miasm-812e32123dfc0e0aafc606dbc2e154d87f047579.zip | |
Example/Asm_x86_32: Reorganize and remove unused imports
Diffstat (limited to '')
| -rw-r--r-- | example/asm_box_x86_32.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/asm_box_x86_32.py b/example/asm_box_x86_32.py index 8664671d..def7af99 100644 --- a/example/asm_box_x86_32.py +++ b/example/asm_box_x86_32.py @@ -7,7 +7,7 @@ from elfesteem import pe_init from miasm2.core.cpu import parse_ast 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 parser = ArgumentParser("x86 32bits assembler") @@ -27,11 +27,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) |