Author: aandrejevic
Date: Sun Nov 3 18:31:00 2013
New Revision: 60851
URL:
http://svn.reactos.org/svn/reactos?rev=60851&view=rev
Log:
[FAST486]
BP is certainly not the same register as BX.
Modified:
branches/ntvdm/lib/fast486/common.inl
Modified: branches/ntvdm/lib/fast486/common.inl
URL:
http://svn.reactos.org/svn/reactos/branches/ntvdm/lib/fast486/common.inl?re…
==============================================================================
--- branches/ntvdm/lib/fast486/common.inl [iso-8859-1] (original)
+++ branches/ntvdm/lib/fast486/common.inl [iso-8859-1] Sun Nov 3 18:31:00 2013
@@ -550,9 +550,8 @@
switch (RegMem)
{
case 0:
- case 2:
- {
- /* (SS:)[BX + SI] */
+ {
+ /* [BX + SI] */
ModRegRm->MemoryAddress =
State->GeneralRegs[FAST486_REG_EBX].LowWord
+
State->GeneralRegs[FAST486_REG_ESI].LowWord;
@@ -560,10 +559,27 @@
}
case 1:
+ {
+ /* [BX + DI] */
+ ModRegRm->MemoryAddress =
State->GeneralRegs[FAST486_REG_EBX].LowWord
+ +
State->GeneralRegs[FAST486_REG_EDI].LowWord;
+
+ break;
+ }
+
+ case 2:
+ {
+ /* SS:[BP + SI] */
+ ModRegRm->MemoryAddress =
State->GeneralRegs[FAST486_REG_EBP].LowWord
+ +
State->GeneralRegs[FAST486_REG_ESI].LowWord;
+
+ break;
+ }
+
case 3:
{
- /* (SS:)[BX + DI] */
- ModRegRm->MemoryAddress =
State->GeneralRegs[FAST486_REG_EBX].LowWord
+ /* SS:[BP + DI] */
+ ModRegRm->MemoryAddress =
State->GeneralRegs[FAST486_REG_EBP].LowWord
+
State->GeneralRegs[FAST486_REG_EDI].LowWord;
break;