Added real mode iretd
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1052
This commit is contained in:
parent
bb45fd24d7
commit
94ea572dc1
1 changed files with 3 additions and 1 deletions
|
@ -260,7 +260,9 @@ bool Interrupt(Bitu num) {
|
|||
bool CPU_IRET(bool use32) {
|
||||
if (!(cpu.state & STATE_PROTECTED)) { /*RealMode IRET */
|
||||
if (use32) {
|
||||
E_Exit("No support for IRETD in real mode");
|
||||
reg_eip=CPU_Pop32();
|
||||
SegSet16(cs,CPU_Pop32());
|
||||
SETFLAGSw(CPU_Pop32());
|
||||
} else {
|
||||
reg_eip=CPU_Pop16();
|
||||
SegSet16(cs,CPU_Pop16());
|
||||
|
|
Loading…
Add table
Reference in a new issue