From 9f5e46bffb5db36e79451f61a1b73a0bb4fc25ed Mon Sep 17 00:00:00 2001 From: Ajax Date: Fri, 13 Nov 2015 14:24:54 +0100 Subject: x86/sem: fix OF calculation for shr --- miasm2/arch/x86/sem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miasm2/arch/x86/sem.py') 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): -- cgit 1.4.1