From: "David Lee" Newsgroups: comp.os.msdos.djgpp Subject: Real mode interrupt Date: Sun, 16 Jul 2000 18:33:19 +0800 Organization: IMS Netvigator Lines: 30 Message-ID: <8ks319$ip3178@imsp212.netvigator.com> NNTP-Posting-Host: wtsak016175.netvigator.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I would like to call DOS interrupt 25h from my djgpp program. This function explicitly requires the caller to pop off the flags after the interrupt returns: int 25h jc err_handler popf ; pop off the flag (from the stack) after the interrupt. For protected mode programs, 'popf' would mean 'popping off from real mode stack.' Now it seems 'popf' becomes unnecessary and meaningless, because it seems that the real mode stack is reinitialized anyway for each __dpmi_int() call, or is it? Thanks a lot.