about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2017-06-13 14:07:59 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2017-06-13 14:07:59 +0200
commit7f0544dada44c7ce0099bc61fd812adfebe06b01 (patch)
tree8eb7ecb7d64fd9095bd6d4366f6c6acaac339360
parent443a811aa92a31d3c2ae89937c5abb497bcc30ff (diff)
downloadmiasm-7f0544dada44c7ce0099bc61fd812adfebe06b01.tar.gz
miasm-7f0544dada44c7ce0099bc61fd812adfebe06b01.zip
MSP430:fix api
-rw-r--r--miasm2/arch/msp430/sem.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/arch/msp430/sem.py b/miasm2/arch/msp430/sem.py
index 5bf2999f..5fd96ae2 100644
--- a/miasm2/arch/msp430/sem.py
+++ b/miasm2/arch/msp430/sem.py
@@ -407,8 +407,8 @@ composed_sr = ExprCompose(cf, zf, nf, gie, cpuoff, osc, scg0, scg1, of, res)
 
 def ComposeExprAff(dst, src):
     e = []
-    for x, start, stop in dst.args:
-        e.append(ExprAff(x, src[start:stop]))
+    for start, arg in dst.iter_args():
+        e.append(ExprAff(arg, src[start:start+arg.size]))
     return e