From 8445060ad985865d9c2588d949cfb38338b4ab04 Mon Sep 17 00:00:00 2001 From: Alexis Engelke Date: Fri, 19 Jun 2020 10:06:22 +0200 Subject: [PATCH] fadec: Make memory displacement 64-bit large While for almost all instructions the memory address displacement is sign-extended 32-bits (like for immediate operands), there is a single case where this is not true: the FD/TD mov encoding allows for a 64-bit memory address to be specified. --- fadec.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fadec.h b/fadec.h index ff950cb..58c533e 100644 --- a/fadec.h +++ b/fadec.h @@ -97,8 +97,7 @@ typedef struct { FdOp operands[4]; - int32_t disp; - uint32_t _pad1; + intptr_t disp; intptr_t imm; uintptr_t address;