about summary refs log tree commit diff stats
path: root/example
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2012-12-03 10:55:34 +0100
committerserpilliere <devnull@localhost>2012-12-03 10:55:34 +0100
commitdb218bfa167662eec12c2016472399e858d621ba (patch)
treee36e9d400410e473bddcddb3eb6f55db45ae4881 /example
parentf9a6599e88502ae3c7555df6af411a446ddf2900 (diff)
downloadmiasm-db218bfa167662eec12c2016472399e858d621ba.tar.gz
miasm-db218bfa167662eec12c2016472399e858d621ba.zip
core: fix add_label api for asm_bloc (louis granboulan)
Diffstat (limited to 'example')
-rwxr-xr-xexample/asm_arm.py2
-rw-r--r--example/asm_box.py2
-rw-r--r--example/expression/manip_expression4.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/example/asm_arm.py b/example/asm_arm.py
index b146a362..2072f519 100755
--- a/example/asm_arm.py
+++ b/example/asm_arm.py
@@ -44,7 +44,7 @@ open("graph.txt" , "w").write(g)
 
 for b in all_bloc[0]:
     print b
-symbol_pool.add(asmbloc.asm_label('base_address', 0x0))
+symbol_pool.add_label('base_address', 0x0)
 symbol_pool.getby_name("toto").offset = 0x0
 
 resolved_b, patches = asmbloc.asm_resolve_final(my_mn, all_bloc[0], symbol_pool)
diff --git a/example/asm_box.py b/example/asm_box.py
index 86ff7e71..f1e4bde5 100644
--- a/example/asm_box.py
+++ b/example/asm_box.py
@@ -26,7 +26,7 @@ title:
 msg:
 .string "World!"
 ''')
-symbol_pool.add(asmbloc.asm_label('base_address', 0))
+symbol_pool.add_label('base_address', 0)
 symbol_pool.getby_name("MessageBoxA").offset = e.DirImport.get_funcvirt('MessageBoxA')
 symbol_pool.getby_name("main").offset = e.rva2virt(s_text.addr)
 resolved_b, patches = asmbloc.asm_resolve_final(x86_mn, all_bloc[0], symbol_pool)
diff --git a/example/expression/manip_expression4.py b/example/expression/manip_expression4.py
index 2cc4abf9..65f1f2f4 100644
--- a/example/expression/manip_expression4.py
+++ b/example/expression/manip_expression4.py
@@ -91,7 +91,7 @@ in_str = bin_stream(data)
 
 job_done = set()
 symbol_pool = asmbloc.asm_symbol_pool()
-l = asmbloc.asm_label('toto')
+l = symbol_pool.add_label('toto')
 b = asmbloc.asm_bloc(l)
 
 ad = 0x2E