diff options
| author | Camille Mougey <commial@gmail.com> | 2018-05-14 13:53:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-14 13:53:04 +0200 |
| commit | d7c7527fbc4dea0f340402b62e7146b1d1916d2a (patch) | |
| tree | 45413ece50186f74a046ef2e2f30b4df8a19b963 /test/arch/mips32 | |
| parent | f6e1c074f6a17b6a895dcf5352c213a1b6bacb99 (diff) | |
| parent | ab3635f44ab45e22150bc373e33b7cf11ea46f63 (diff) | |
| download | miasm-d7c7527fbc4dea0f340402b62e7146b1d1916d2a.tar.gz miasm-d7c7527fbc4dea0f340402b62e7146b1d1916d2a.zip | |
Merge pull request #734 from serpilliere/enhance_parser
Enhance parser
Diffstat (limited to '')
| -rw-r--r-- | test/arch/mips32/arch.py | 5 | ||||
| -rw-r--r-- | test/arch/mips32/unit/asm_test.py | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/test/arch/mips32/arch.py b/test/arch/mips32/arch.py index b28e2583..c6b68c0c 100644 --- a/test/arch/mips32/arch.py +++ b/test/arch/mips32/arch.py @@ -1,8 +1,11 @@ import time from pdb import pm +from miasm2.core.asmblock import AsmSymbolPool from miasm2.arch.mips32.arch import * +symbol_pool = AsmSymbolPool() + reg_tests_mips32 = [ ("004496D8 ADDU GP, GP, T9", "0399E021"), @@ -227,7 +230,7 @@ for s, l in reg_tests_mips32: assert(str(mn) == s) # print hex(b) # print [str(x.get()) for x in mn.args] - l = mn_mips32.fromstring(s, 'b') + l = mn_mips32.fromstring(s, symbol_pool, 'b') # print l assert(str(l) == s) a = mn_mips32.asm(l, 'b') diff --git a/test/arch/mips32/unit/asm_test.py b/test/arch/mips32/unit/asm_test.py index 9281f1b6..f03a32d7 100644 --- a/test/arch/mips32/unit/asm_test.py +++ b/test/arch/mips32/unit/asm_test.py @@ -1,8 +1,7 @@ import sys import os -from miasm2.core.cpu import ParseAst -from miasm2.arch.mips32.arch import mn_mips32, base_expr, variable +from miasm2.arch.mips32.arch import mn_mips32 from miasm2.core import parse_asm from miasm2.expression.expression import * from miasm2.core import asmblock |