src/emu/cpu/i86/instr286.c
| r11757 | r11758 | |
| 788 | 788 | cpustate->pc=(cpustate->base[CS]+off)&AMASK ; |
| 789 | 789 | |
| 790 | 790 | // docs say check rpl but windows doesn't like it |
| 791 | | if (i80286_verify(cpustate, cpustate->sregs[DS], I80286_READ, cpustate->rights[DS]) && (DPL(cpustate->rights[DS]) < CPL)) |
| 791 | if (i80286_verify(cpustate, cpustate->sregs[DS], I80286_READ, cpustate->rights[DS]) || (DPL(cpustate->rights[DS]) < CPL)) |
| 792 | 792 | i80286_data_descriptor(cpustate, DS, 0); |
| 793 | 793 | |
| 794 | | if (i80286_verify(cpustate, cpustate->sregs[ES], I80286_READ, cpustate->rights[ES]) && (DPL(cpustate->rights[ES]) < CPL)) |
| 794 | if (i80286_verify(cpustate, cpustate->sregs[ES], I80286_READ, cpustate->rights[ES]) || (DPL(cpustate->rights[ES]) < CPL)) |
| 795 | 795 | i80286_data_descriptor(cpustate, ES, 0); |
| 796 | 796 | } else { |
| 797 | 797 | cpustate->regs.w[SP] += (iret?6:4) + bytes; |