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 /example/disasm/single_instr.py | |
| 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 'example/disasm/single_instr.py')
| -rw-r--r-- | example/disasm/single_instr.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/example/disasm/single_instr.py b/example/disasm/single_instr.py index 0e29dcee..59b81de7 100644 --- a/example/disasm/single_instr.py +++ b/example/disasm/single_instr.py @@ -1,7 +1,9 @@ from miasm2.arch.x86.arch import mn_x86 from miasm2.arch.x86.regs import EDX +from miasm2.core.asmblock import AsmSymbolPool -l = mn_x86.fromstring('MOV EAX, EBX', 32) +symbol_pool = AsmSymbolPool() +l = mn_x86.fromstring('MOV EAX, EBX', symbol_pool, 32) print "instruction:", l print "arg:", l.args[0] x = mn_x86.asm(l) |