From c0e9ec7940417e8c830cb05b816e0647d53e41e3 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Tue, 12 May 2015 02:47:59 +0000 Subject: [PATCH] [FAST486] The default segment is SS when the SIB base is EBP. svn path=/trunk/; revision=67674 --- reactos/lib/fast486/common.inl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/lib/fast486/common.inl b/reactos/lib/fast486/common.inl index 3fd2a4efcba..8491451ba21 100644 --- a/reactos/lib/fast486/common.inl +++ b/reactos/lib/fast486/common.inl @@ -1074,7 +1074,8 @@ Fast486ParseModRegRm(PFAST486_STATE State, } } - if ((SibByte & 0x07) == FAST486_REG_ESP) + if (((SibByte & 0x07) == FAST486_REG_ESP) + || ((SibByte & 0x07) == FAST486_REG_EBP && Mode != 0)) { /* Check if there is no segment override */ if (!(State->PrefixFlags & FAST486_PREFIX_SEG))