![]() |
miasm
Reverse engineering framework
|
Classes | |
| class | Directive |
| class | DirectiveAlign |
| class | DirectiveDontSplit |
| class | DirectiveSplit |
Functions | |
| def | guess_next_new_label (loc_db) |
| def | asm_ast_to_expr_with_size (arg, loc_db, size) |
| def | parse_txt (mnemo, attrib, txt, loc_db) |
Variables | |
| dictionary | declarator |
| dictionary | size2pck |
| EMPTY_RE = re.compile(r'\s*$') | |
| COMMENT_RE = re.compile(r'\s*;\S*') | |
| LOCAL_LABEL_RE = re.compile(r'\s*(\.L\S+)\s*:') | |
| DIRECTIVE_START_RE = re.compile(r'\s*\.') | |
| DIRECTIVE_RE = re.compile(r'\s*\.(\S+)') | |
| LABEL_RE = re.compile(r'\s*(\S+)\s*:') | |
| FORGET_LABEL_RE = re.compile(r'\s*\.LF[BE]\d\s*:') | |
| int | STATE_NO_BLOC = 0 |
| int | STATE_IN_BLOC = 1 |
| def miasm.core.parse_asm.asm_ast_to_expr_with_size | ( | arg, | |
| loc_db, | |||
| size | |||
| ) |

| def miasm.core.parse_asm.guess_next_new_label | ( | loc_db | ) |
Generate a new label @loc_db: the LocationDB instance

| def miasm.core.parse_asm.parse_txt | ( | mnemo, | |
| attrib, | |||
| txt, | |||
| loc_db | |||
| ) |
Parse an assembly listing. Returns an AsmCfg instance @mnemo: architecture used @attrib: architecture attribute @txt: assembly listing @loc_db: the LocationDB instance used to handle labels of the listing


| miasm.core.parse_asm.COMMENT_RE = re.compile(r'\s*;\S*') |
| dictionary miasm.core.parse_asm.declarator |
| miasm.core.parse_asm.DIRECTIVE_RE = re.compile(r'\s*\.(\S+)') |
| miasm.core.parse_asm.DIRECTIVE_START_RE = re.compile(r'\s*\.') |
| miasm.core.parse_asm.EMPTY_RE = re.compile(r'\s*$') |
| miasm.core.parse_asm.FORGET_LABEL_RE = re.compile(r'\s*\.LF[BE]\d\s*:') |
| miasm.core.parse_asm.LABEL_RE = re.compile(r'\s*(\S+)\s*:') |
| miasm.core.parse_asm.LOCAL_LABEL_RE = re.compile(r'\s*(\.L\S+)\s*:') |
| dictionary miasm.core.parse_asm.size2pck |
| int miasm.core.parse_asm.STATE_IN_BLOC = 1 |
| int miasm.core.parse_asm.STATE_NO_BLOC = 0 |