From cf75ac1640e95e57099bca9579a3a45e07c709f0 Mon Sep 17 00:00:00 2001 From: Axel Tillequin Date: Fri, 23 Oct 2015 10:42:37 +0200 Subject: [PATCH] hotfix modRM disp non-negative case --- amoco/arch/x86/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amoco/arch/x86/utils.py b/amoco/arch/x86/utils.py index 5877e31..df64374 100644 --- a/amoco/arch/x86/utils.py +++ b/amoco/arch/x86/utils.py @@ -84,8 +84,8 @@ def getModRM(obj,Mod,RM,data): d = d.int(-1) bs = b+s if bs._is_cst and bs.v==0x0: - bs.v = d bs.size = adrsz + bs.v = d & bs.mask d = 0 return env.mem(bs,opdsz,seg,d),data