about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--miasm/arch/msp430/sem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/arch/msp430/sem.py b/miasm/arch/msp430/sem.py
index 52056e5a..68605ae4 100644
--- a/miasm/arch/msp430/sem.py
+++ b/miasm/arch/msp430/sem.py
@@ -268,7 +268,7 @@ def xor_w(ir, instr, a, b):
     e += [ExprAssign(zf, ExprOp('FLAG_EQ_CMP', arg2, arg1))]
     e += update_flag_nf(res)
     e += reset_sr_res()
-    e += update_flag_cf_inv_zf(c)
+    e += update_flag_cf_inv_zf(res)
     e.append(ExprAssign(of, arg2.msb() & arg1.msb()))
 
     return e, []