about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-11-13 14:24:54 +0100
committerAjax <commial@gmail.com>2015-11-13 14:24:54 +0100
commit9f5e46bffb5db36e79451f61a1b73a0bb4fc25ed (patch)
treef06c86a02478913d3a9dfa8b84dfb165082b6505
parent5d66a91c9aa4d3a0291854ea4bad12fe520b4806 (diff)
downloadmiasm-9f5e46bffb5db36e79451f61a1b73a0bb4fc25ed.tar.gz
miasm-9f5e46bffb5db36e79451f61a1b73a0bb4fc25ed.zip
x86/sem: fix OF calculation for shr
-rw-r--r--miasm2/arch/x86/sem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py
index 295d05c2..5bf4a7a1 100644
--- a/miasm2/arch/x86/sem.py
+++ b/miasm2/arch/x86/sem.py
@@ -563,7 +563,7 @@ def sar(ir, instr, a, b):
 
 
 def shr(ir, instr, a, b):
-    return _shift_tpl(">>", ir, instr, a, b)
+    return _shift_tpl(">>", ir, instr, a, b, custom_of=a.msb())
 
 
 def shrd_cl(ir, instr, a, b):