diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-08-24 15:39:47 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-08-24 15:39:47 +0200 |
| commit | 4c2224a784c15784597624fadd6d9a5dae7d37a2 (patch) | |
| tree | 5bb5cf067070f98ca117829af9dc02ecbe47483b /miasm2/core/cpu.py | |
| parent | 2ae7ffe2459adb872c27b434810f5f5673d8d68d (diff) | |
| download | miasm-4c2224a784c15784597624fadd6d9a5dae7d37a2.tar.gz miasm-4c2224a784c15784597624fadd6d9a5dae7d37a2.zip | |
Core: fix asm int
Diffstat (limited to 'miasm2/core/cpu.py')
| -rw-r--r-- | miasm2/core/cpu.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/miasm2/core/cpu.py b/miasm2/core/cpu.py index 686e12ba..8491c5c8 100644 --- a/miasm2/core/cpu.py +++ b/miasm2/core/cpu.py @@ -1030,6 +1030,10 @@ class instruction(object): if '_' in names: fixed_expr[exprloc] = self.get_asm_next_offset(exprloc) continue + arg_int = symbols.get_location_offset(loc_key) + if arg_int is not None: + fixed_expr[exprloc] = m2_expr.ExprInt(arg_int, exprloc.size) + continue if not names: raise ValueError('Unresolved symbol: %r' % exprloc) |