From c7a7dbe7e264efd0610e21cd014f7550a0d9cc79 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Mon, 11 Nov 2013 19:08:28 +0000 Subject: [PATCH] [FAST486] Fix the previous fix in the Mod-Reg-R/M parser. EBP is still used if the mode is 1 or 2. svn path=/branches/ntvdm/; revision=60948 --- lib/fast486/common.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fast486/common.inl b/lib/fast486/common.inl index 524d3d90867..8097374bed7 100644 --- a/lib/fast486/common.inl +++ b/lib/fast486/common.inl @@ -720,7 +720,7 @@ Fast486ParseModRegRm(PFAST486_STATE State, if (Index != FAST486_REG_ESP) Index = State->GeneralRegs[Index].Long; else Index = 0; - if ((SibByte & 0x07) != FAST486_REG_EBP) + if (((SibByte & 0x07) != FAST486_REG_EBP) || (Mode != 0)) { /* Use the register a base */ Base = State->GeneralRegs[SibByte & 0x07].Long; -- 2.17.1