Previous 15994 Revisions Next

r11601 Friday 20th May, 2011 at 16:09:06 UTC by Miodrag Milanović
i286 - Fix for protected mode, ibm5170 no errors anymore by Carl (no whatsnew)
[src/emu/cpu/i86]instr286.c

src/emu/cpu/i86/instr286.c
r11600r11601
487487         r = RIGHTS(desc);
488488         if (DPL(r)>=PMAX(RPL(tmp),CPL)) {
489489            cpustate->ZeroVal = 0;
490            RegWord(ModRM) = RIGHTS(desc);
490            // rights are expected to be in upper byte
491            RegWord(ModRM) = r << 8;
491492         }
492493         else
493494            cpustate->ZeroVal = 1;
r11600r11601
574575
575576   if (RPL(tmp)<RPL(source))
576577   {
577      cpustate->ZeroVal = 1;
578      cpustate->ZeroVal = 0;
578579      PutbackRMWord(ModRM, IDXTBL(tmp)|RPL(source));
579580   }
580581   else
581      cpustate->ZeroVal = 0;
582      cpustate->ZeroVal = 1;
582583}
583584
584585static void i80286_load_flags(i8086_state *cpustate, int flags, int cpl)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team