diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2015-03-10 15:53:28 +0100 |
|---|---|---|
| committer | serpilliere <serpilliere@users.noreply.github.com> | 2015-03-10 15:53:28 +0100 |
| commit | d1c270b845001965d35e36e5e13402fa718a0e5f (patch) | |
| tree | 966313c05965f5687cd9d11f7bc3a44195300ab5 | |
| parent | 75223084031a4c29368be3381893206c601e5df1 (diff) | |
| parent | c9f332f47c455aefa518f18b089435d20c1c1993 (diff) | |
| download | miasm-d1c270b845001965d35e36e5e13402fa718a0e5f.tar.gz miasm-d1c270b845001965d35e36e5e13402fa718a0e5f.zip | |
Merge pull request #105 from p-l-/fix-msp430-SR-affect
MSP430 semantic: fix SR affectation
| -rw-r--r-- | miasm2/arch/msp430/sem.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/arch/msp430/sem.py b/miasm2/arch/msp430/sem.py index a6563ad5..eb3a8282 100644 --- a/miasm2/arch/msp430/sem.py +++ b/miasm2/arch/msp430/sem.py @@ -437,7 +437,7 @@ class ir_msp430(ir): if x.dst != SR: continue xx = ComposeExprAff(composed_sr, x.src) - instr_ir[i] = xx + instr_ir[i:i+1] = xx for i, x in enumerate(instr_ir): x = ExprAff(x.dst, x.src.replace_expr( {self.pc: ExprInt16(instr.offset + instr.l)})) |