mirror of
https://github.com/holub/mame
synced 2025-06-05 12:26:35 +03:00
i286 - Fix for protected mode, ibm5170 no errors anymore by Carl (no whatsnew)
This commit is contained in:
parent
0235cef534
commit
f2a42ffe4d
@ -487,7 +487,8 @@ static void PREFIX286(_0fpre)(i8086_state *cpustate)
|
||||
r = RIGHTS(desc);
|
||||
if (DPL(r)>=PMAX(RPL(tmp),CPL)) {
|
||||
cpustate->ZeroVal = 0;
|
||||
RegWord(ModRM) = RIGHTS(desc);
|
||||
// rights are expected to be in upper byte
|
||||
RegWord(ModRM) = r << 8;
|
||||
}
|
||||
else
|
||||
cpustate->ZeroVal = 1;
|
||||
@ -574,11 +575,11 @@ static void PREFIX286(_arpl)(i8086_state *cpustate) /* 0x63 */
|
||||
|
||||
if (RPL(tmp)<RPL(source))
|
||||
{
|
||||
cpustate->ZeroVal = 1;
|
||||
cpustate->ZeroVal = 0;
|
||||
PutbackRMWord(ModRM, IDXTBL(tmp)|RPL(source));
|
||||
}
|
||||
else
|
||||
cpustate->ZeroVal = 0;
|
||||
cpustate->ZeroVal = 1;
|
||||
}
|
||||
|
||||
static void i80286_load_flags(i8086_state *cpustate, int flags, int cpl)
|
||||
|
Loading…
Reference in New Issue
Block a user