about summary refs log tree commit diff stats
path: root/example/expression
diff options
context:
space:
mode:
authorserpilliere <fabrice.desclaux@cea.fr>2015-10-27 22:32:07 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2015-10-29 21:40:20 +0100
commit00daaf5d0d0abe87a889bce92e49556cbbc07d0f (patch)
treeba61ca85399d08130fead815dc0fbcb2b2d6c43c /example/expression
parente7de4b61ccc4f310852c1ac8e9f9d154a1851603 (diff)
downloadmiasm-00daaf5d0d0abe87a889bce92e49556cbbc07d0f.tar.gz
miasm-00daaf5d0d0abe87a889bce92e49556cbbc07d0f.zip
Core/parse_asm: update parse_txt API use
Diffstat (limited to 'example/expression')
-rw-r--r--example/expression/asm_to_ir.py1
-rw-r--r--example/expression/solve_condition_stp.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/example/expression/asm_to_ir.py b/example/expression/asm_to_ir.py
index 942e5e19..19ffd659 100644
--- a/example/expression/asm_to_ir.py
+++ b/example/expression/asm_to_ir.py
@@ -23,7 +23,6 @@ loop:
    RET
 ''')
 
-blocs = blocs[0]
 
 symbol_pool.set_offset(symbol_pool.getby_name("main"), 0x0)
 for b in blocs:
diff --git a/example/expression/solve_condition_stp.py b/example/expression/solve_condition_stp.py
index a25a7072..385c5d78 100644
--- a/example/expression/solve_condition_stp.py
+++ b/example/expression/solve_condition_stp.py
@@ -170,7 +170,7 @@ if __name__ == '__main__':
     ''')
 
 
-    b = blocs[0][0]
+    b = blocs[0]
     print b
     # add fake address and len to parsed instructions
     for i, l in enumerate(b.lines):