diff options
| author | serpilliere <devnull@localhost> | 2014-06-03 10:18:48 +0200 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2014-06-03 10:18:48 +0200 |
| commit | a183e1ebd525453710306695daa8c410fd0cb2af (patch) | |
| tree | cd99281474ea3999ccc6e5399c2cb95349981cfb /example/expression/manip_expression2.py | |
| parent | cecdf0da2ed0221c203af9157add30e2bff7dd8c (diff) | |
| download | miasm-a183e1ebd525453710306695daa8c410fd0cb2af.tar.gz miasm-a183e1ebd525453710306695daa8c410fd0cb2af.zip | |
Send miasm v1 to hell
Diffstat (limited to 'example/expression/manip_expression2.py')
| -rw-r--r-- | example/expression/manip_expression2.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/example/expression/manip_expression2.py b/example/expression/manip_expression2.py deleted file mode 100644 index e8b73a92..00000000 --- a/example/expression/manip_expression2.py +++ /dev/null @@ -1,27 +0,0 @@ -from miasm.arch.ia32_sem import * - -print 'simple expression use demo: get read/written stuff for instruction:' -print 'add eax, [ebx]' -print - -def get_rw(exprs): - o_r = set() - o_w = set() - for e in exprs: - o_r.update(e.get_r(mem_read=True)) - for e in exprs: - o_w.update(e.get_w()) - return o_r, o_w - -a = ExprId('eax') -b = ExprMem(ExprId('ebx'), 32) - -exprs = add(ia32info(), a, b) -o_r, o_w = get_rw(exprs) -# read ID -print 'r:', [str(x) for x in o_r] -# ['eax', '@32[ebx]', 'ebx'] - -# written ID -print 'w:', [str(x) for x in o_w] -# ['eax', 'pf', 'af', 'of', 'zf', 'cf', 'nf'] |