From 94ea572dc16b9360b12c0a3248ee64e92ab220dd Mon Sep 17 00:00:00 2001 From: Ulf Wohlers Date: Thu, 12 Jun 2003 13:01:12 +0000 Subject: [PATCH] Added real mode iretd Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1052 --- src/cpu/cpu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cpu/cpu.cpp b/src/cpu/cpu.cpp index f82c064f..7a29579d 100644 --- a/src/cpu/cpu.cpp +++ b/src/cpu/cpu.cpp @@ -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());