diff options
| author | serpilliere <devnull@localhost> | 2013-01-28 10:20:32 +0100 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2013-01-28 10:20:32 +0100 |
| commit | fb64e0375985ac75e872aaad986368e558bc7921 (patch) | |
| tree | 8978d7d8abb259b0d5f5870b728d1382d5728a1c | |
| parent | 09b7b94e7223bf57b2a16c26c474d55d9158d3d5 (diff) | |
| parent | 9813a49e961b674ff0108d0f60c968de17de8a1b (diff) | |
| download | miasm-fb64e0375985ac75e872aaad986368e558bc7921.tar.gz miasm-fb64e0375985ac75e872aaad986368e558bc7921.zip | |
merge
| -rw-r--r-- | miasm/arch/ia32_arch.py | 2 | ||||
| -rw-r--r-- | miasm/core/parse_ad.py | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/miasm/arch/ia32_arch.py b/miasm/arch/ia32_arch.py index 929db6eb..3f6a5af4 100644 --- a/miasm/arch/ia32_arch.py +++ b/miasm/arch/ia32_arch.py @@ -210,7 +210,7 @@ def is_reg(a): return True def get_label(a): - if x86_afs.ad in a: + if x86_afs.ad in a and a[x86_afs.ad]: return None if x86_afs.imm in a: return None diff --git a/miasm/core/parse_ad.py b/miasm/core/parse_ad.py index 67fca3a8..8cb5ca9f 100644 --- a/miasm/core/parse_ad.py +++ b/miasm/core/parse_ad.py @@ -277,6 +277,12 @@ def p_expression_10(t): t[2][x86_afs.ad] = x86_afs.u32 t[0] = t[2] +def p_expression_10b(t): + '''expression : expression LBRA expression RBRA ''' + t[0] = t[3] + for f in t[1]: + t[0][f] = t[1][f] + def p_expression_10a(t): '''expression : opt_seg_colon expression ''' t[2].update(t[1]) |