1
0
Fork 0

Added real mode iretd

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1052
This commit is contained in:
Ulf Wohlers 2003-06-12 13:01:12 +00:00
parent bb45fd24d7
commit 94ea572dc1

View file

@ -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());