mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[FAST486]
If FAST486_PREFIX_SEG is set, we're supposed to use the override segment instead of DS, and not the other way around. svn path=/trunk/; revision=68815
This commit is contained in:
parent
50f5e804a9
commit
7b30b216d0
1 changed files with 6 additions and 6 deletions
|
@ -1982,7 +1982,7 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD9)
|
|||
{
|
||||
Fast486FpuLoadEnvironment(State,
|
||||
(State->PrefixFlags & FAST486_PREFIX_SEG)
|
||||
? FAST486_REG_DS : State->SegmentOverride,
|
||||
? State->SegmentOverride : FAST486_REG_DS,
|
||||
ModRegRm.MemoryAddress,
|
||||
OperandSize);
|
||||
break;
|
||||
|
@ -2000,7 +2000,7 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD9)
|
|||
{
|
||||
Fast486FpuSaveEnvironment(State,
|
||||
(State->PrefixFlags & FAST486_PREFIX_SEG)
|
||||
? FAST486_REG_DS : State->SegmentOverride,
|
||||
? State->SegmentOverride : FAST486_REG_DS,
|
||||
ModRegRm.MemoryAddress,
|
||||
OperandSize);
|
||||
break;
|
||||
|
@ -3249,7 +3249,7 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDD)
|
|||
/* Save the environment */
|
||||
if (!Fast486FpuLoadEnvironment(State,
|
||||
(State->PrefixFlags & FAST486_PREFIX_SEG)
|
||||
? FAST486_REG_DS : State->SegmentOverride,
|
||||
? State->SegmentOverride : FAST486_REG_DS,
|
||||
ModRegRm.MemoryAddress,
|
||||
OperandSize))
|
||||
{
|
||||
|
@ -3260,7 +3260,7 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDD)
|
|||
/* Load the registers */
|
||||
if (!Fast486ReadMemory(State,
|
||||
(State->PrefixFlags & FAST486_PREFIX_SEG)
|
||||
? FAST486_REG_DS : State->SegmentOverride,
|
||||
? State->SegmentOverride : FAST486_REG_DS,
|
||||
ModRegRm.MemoryAddress + (OperandSize + 1) * 14,
|
||||
FALSE,
|
||||
AllRegs,
|
||||
|
@ -3297,7 +3297,7 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDD)
|
|||
/* Save the environment */
|
||||
if (!Fast486FpuSaveEnvironment(State,
|
||||
(State->PrefixFlags & FAST486_PREFIX_SEG)
|
||||
? FAST486_REG_DS : State->SegmentOverride,
|
||||
? State->SegmentOverride : FAST486_REG_DS,
|
||||
ModRegRm.MemoryAddress,
|
||||
OperandSize))
|
||||
{
|
||||
|
@ -3319,7 +3319,7 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDD)
|
|||
|
||||
Fast486WriteMemory(State,
|
||||
(State->PrefixFlags & FAST486_PREFIX_SEG)
|
||||
? FAST486_REG_DS : State->SegmentOverride,
|
||||
? State->SegmentOverride : FAST486_REG_DS,
|
||||
ModRegRm.MemoryAddress + (OperandSize + 1) * 14,
|
||||
AllRegs,
|
||||
sizeof(AllRegs));
|
||||
|
|
Loading…
Reference in a new issue