about summary refs log tree commit diff stats
path: root/test/arch/msp430/arch.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-05-14 13:53:04 +0200
committerGitHub <noreply@github.com>2018-05-14 13:53:04 +0200
commitd7c7527fbc4dea0f340402b62e7146b1d1916d2a (patch)
tree45413ece50186f74a046ef2e2f30b4df8a19b963 /test/arch/msp430/arch.py
parentf6e1c074f6a17b6a895dcf5352c213a1b6bacb99 (diff)
parentab3635f44ab45e22150bc373e33b7cf11ea46f63 (diff)
downloadmiasm-d7c7527fbc4dea0f340402b62e7146b1d1916d2a.tar.gz
miasm-d7c7527fbc4dea0f340402b62e7146b1d1916d2a.zip
Merge pull request #734 from serpilliere/enhance_parser
Enhance parser
Diffstat (limited to 'test/arch/msp430/arch.py')
-rw-r--r--test/arch/msp430/arch.py5
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)