about summary refs log tree commit diff stats
path: root/miasm2/core/parse_asm.py
diff options
context:
space:
mode:
authorserpilliere <fabrice.desclaux@cea.fr>2015-10-28 23:36:20 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2015-10-29 21:40:20 +0100
commite401e48b6e074c27eda658bd578f705bf07410b0 (patch)
tree6f1e44274be3cb94955bc243e851eea174cc7826 /miasm2/core/parse_asm.py
parent06fee2b133cd4e2d734d9e164de8028c26c636a8 (diff)
downloadmiasm-e401e48b6e074c27eda658bd578f705bf07410b0.tar.gz
miasm-e401e48b6e074c27eda658bd578f705bf07410b0.zip
Core/parse_asm: align support int/hex
Diffstat (limited to 'miasm2/core/parse_asm.py')
-rw-r--r--miasm2/core/parse_asm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/core/parse_asm.py b/miasm2/core/parse_asm.py
index 2f409172..8f193705 100644
--- a/miasm2/core/parse_asm.py
+++ b/miasm2/core/parse_asm.py
@@ -194,7 +194,7 @@ def parse_txt(mnemo, attrib, txt, symbol_pool=None):
                 lines.append(DirectiveDontSplit())
                 continue
             if directive == "align":
-                align_value = int(line[match_re.end():])
+                align_value = int(line[match_re.end():], 0)
                 lines.append(DirectiveAlign(align_value))
                 continue
             if directive in ['file', 'intel_syntax', 'globl', 'local',