diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-02-15 16:59:34 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-03-13 14:13:14 +0100 |
| commit | 397af784e950e4df8a76b4e2806e743193580943 (patch) | |
| tree | 34716b15db60fa003fa1d07a39374e4bb42b7a05 /miasm2/core/parse_asm.py | |
| parent | 72d7235d59d0998bee24b3bf9b18d5501e84f085 (diff) | |
| download | miasm-397af784e950e4df8a76b4e2806e743193580943.tar.gz miasm-397af784e950e4df8a76b4e2806e743193580943.zip | |
Asmbloc: rename asm_raw to AsmRaw
Diffstat (limited to 'miasm2/core/parse_asm.py')
| -rw-r--r-- | miasm2/core/parse_asm.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/miasm2/core/parse_asm.py b/miasm2/core/parse_asm.py index cda330fc..bceab949 100644 --- a/miasm2/core/parse_asm.py +++ b/miasm2/core/parse_asm.py @@ -151,7 +151,7 @@ def parse_txt(mnemo, attrib, txt, symbol_pool=None): raw = raw.decode('string_escape') if directive == 'string': raw += "\x00" - lines.append(asmbloc.asm_raw(raw)) + lines.append(asmbloc.AsmRaw(raw)) continue if directive == 'ustring': # XXX HACK @@ -159,7 +159,7 @@ def parse_txt(mnemo, attrib, txt, symbol_pool=None): raw = line[line.find(r'"') + 1:line.rfind(r'"')] + "\x00" raw = raw.decode('string_escape') raw = "".join([string + '\x00' for string in raw]) - lines.append(asmbloc.asm_raw(raw)) + lines.append(asmbloc.AsmRaw(raw)) continue if directive in declarator: data_raw = line[match_re.end():].split(' ', 1)[1] @@ -179,7 +179,7 @@ def parse_txt(mnemo, attrib, txt, symbol_pool=None): element_expr = base_expr.parseString(element)[0] expr_list.append(element_expr.canonize()) - raw_data = asmbloc.asm_raw(expr_list) + raw_data = asmbloc.AsmRaw(expr_list) raw_data.element_size = size lines.append(raw_data) continue @@ -278,7 +278,7 @@ def parse_txt(mnemo, attrib, txt, symbol_pool=None): block_to_nlink = cur_block elif isinstance(line, DirectiveAlign): cur_block.alignment = line.alignment - elif isinstance(line, asmbloc.asm_raw): + elif isinstance(line, asmbloc.AsmRaw): cur_block.addline(line) block_to_nlink = cur_block elif isinstance(line, asmbloc.AsmLabel): |