Mask PC correctly on IRET to V86 mode. Fixes Windows NT 3.51 installer.
This commit is contained in:
parent
49f2f34249
commit
277b4c3988
1 changed files with 1 additions and 1 deletions
|
|
@ -2152,7 +2152,7 @@ void pmodeiret(int is32)
|
|||
// pclog("V86 IRET %04X:%08X\n",SS,ESP);
|
||||
// output=3;
|
||||
|
||||
cpu_state.pc=newpc;
|
||||
cpu_state.pc = newpc & 0xffff;
|
||||
cpu_state.seg_cs.base=seg<<4;
|
||||
cpu_state.seg_cs.limit=0xFFFF;
|
||||
cpu_state.seg_cs.limit_low = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue