diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2015-12-23 18:51:23 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2015-12-23 19:54:31 +0100 |
| commit | 389c1230cf87fc8535ac1bdc1c2ffad08dd70ae2 (patch) | |
| tree | 7fcfa0476d6123063e3cec6a86bb6eaefcda215d /miasm2/arch/x86/sem.py | |
| parent | f39a91b146c4a2eb8424f4ad8dec53b96a2a56ab (diff) | |
| download | miasm-389c1230cf87fc8535ac1bdc1c2ffad08dd70ae2.tar.gz miasm-389c1230cf87fc8535ac1bdc1c2ffad08dd70ae2.zip | |
X86: add pandn
Diffstat (limited to 'miasm2/arch/x86/sem.py')
| -rw-r--r-- | miasm2/arch/x86/sem.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index 62b6b6b3..5fb7e34d 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -3248,6 +3248,13 @@ def pand(ir, instr, a, b): e.append(m2_expr.ExprAff(a, c)) return e, [] +def pandn(ir, instr, a, b): + e = [] + c = (a ^ a.mask) & b + # No flag affected + e.append(m2_expr.ExprAff(a, c)) + return e, [] + def por(ir, instr, a, b): e = [] @@ -3861,6 +3868,7 @@ mnemo_func = {'mov': mov, ### "pand": pand, + "pandn": pandn, "por": por, "rdmsr": rdmsr, |