diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-05-05 23:13:12 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-05-14 10:29:27 +0200 |
| commit | 94d49ed54f07e3d399de74de13f5422837c031fa (patch) | |
| tree | b3f7fd34c7ff8d17bd9f26d53511b30935485092 /test/arch/msp430/arch.py | |
| parent | db4fd7f58d6a4ed87fc7d6f28c7c2af31e61fb65 (diff) | |
| download | miasm-94d49ed54f07e3d399de74de13f5422837c031fa.tar.gz miasm-94d49ed54f07e3d399de74de13f5422837c031fa.zip | |
Core: updt parser structure
Diffstat (limited to 'test/arch/msp430/arch.py')
| -rw-r--r-- | test/arch/msp430/arch.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/arch/msp430/arch.py b/test/arch/msp430/arch.py index b3dbac82..3df2becb 100644 --- a/test/arch/msp430/arch.py +++ b/test/arch/msp430/arch.py @@ -1,6 +1,9 @@ import time +from pdb import pm from miasm2.arch.msp430.arch import * +from miasm2.core.asmblock import AsmSymbolPool +symbol_pool = AsmSymbolPool() def h2i(s): return s.replace(' ', '').decode('hex') @@ -94,7 +97,7 @@ for s, l in reg_tests_msp: assert(str(mn) == s) # print hex(b) # print [str(x.get()) for x in mn.args] - l = mn_msp430.fromstring(s, None) + l = mn_msp430.fromstring(s, symbol_pool, None) # print l assert(str(l) == s) a = mn_msp430.asm(l) |