about summary refs log tree commit diff stats
path: root/example/asm/simple.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2018-07-02 17:31:59 +0200
committerAjax <commial@gmail.com>2018-07-03 14:28:18 +0200
commit68fac2e86cc61eba9adfe520fa0e04a7e8943450 (patch)
tree2be74a21b54a3111f3c18746badfb0cf1ed41149 /example/asm/simple.py
parent6ef8dbb2223d0847e3822b545b249511e96a1f9b (diff)
downloadfocaccia-miasm-68fac2e86cc61eba9adfe520fa0e04a7e8943450.tar.gz
focaccia-miasm-68fac2e86cc61eba9adfe520fa0e04a7e8943450.zip
symbol_pool -> loc_db
Diffstat (limited to 'example/asm/simple.py')
-rw-r--r--example/asm/simple.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/asm/simple.py b/example/asm/simple.py
index 09df8d94..068d3627 100644
--- a/example/asm/simple.py
+++ b/example/asm/simple.py
@@ -6,7 +6,7 @@ from miasm2.core import parse_asm, asmblock
 
 
 # Assemble code
-asmcfg, symbol_pool = parse_asm.parse_txt(mn_x86, 32, '''
+asmcfg, loc_db = parse_asm.parse_txt(mn_x86, 32, '''
 main:
    MOV    EAX, 1
    MOV    EBX, 2
@@ -22,10 +22,10 @@ loop:
 ''')
 
 # Set 'main' loc_key's offset
-symbol_pool.set_offset(symbol_pool.getby_name("main"), 0x0)
+loc_db.set_offset(loc_db.getby_name("main"), 0x0)
 
 # Spread information and resolve instructions offset
-patches = asmblock.asm_resolve_final(mn_x86, asmcfg, symbol_pool)
+patches = asmblock.asm_resolve_final(mn_x86, asmcfg, loc_db)
 
 # Show resolved asmcfg
 for block in asmcfg.blocks: