diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-06-24 15:07:40 +0200 |
|---|---|---|
| committer | Theofilos Augoustis <theofilos.augoustis@gmail.com> | 2025-10-09 15:26:04 +0000 |
| commit | a01ab03fac0a5019d3298a500347e32398625ee7 (patch) | |
| tree | fb658b1bb3aa0355ff465add2b71b533e274ca06 | |
| parent | a1062578019024e70b51752e29dcd18eb6672a99 (diff) | |
| download | focaccia-miasm-a01ab03fac0a5019d3298a500347e32398625ee7.tar.gz focaccia-miasm-a01ab03fac0a5019d3298a500347e32398625ee7.zip | |
Fix blsi semantics
| -rw-r--r-- | miasm/arch/x86/sem.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/miasm/arch/x86/sem.py b/miasm/arch/x86/sem.py index fb5ee7d5..549e2f79 100644 --- a/miasm/arch/x86/sem.py +++ b/miasm/arch/x86/sem.py @@ -4372,7 +4372,8 @@ def blsi(_, instr, dst, src): e = [] arg1 = m2_expr.ExprInt(0, src.size) - result = arg1 - src + neg_src = arg1 - src + result = neg_src & src e += update_flag_zf(result) e += update_flag_nf(result) |