about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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