delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/12/11:06:29

From: "Alexei A. Frounze" <dummy_addressee AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: inline asm
Date: Mon, 12 Feb 2001 11:00:07 -0500
Lines: 35
Message-ID: <96917s$guccd$1@ID-57378.news.dfncis.de>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010212094219 DOT 12969L AT is>
NNTP-Posting-Host: pppa78-resalerochester2-5r7150.dialinx.net (4.54.46.11)
X-Trace: fu-berlin.de 981993533 17772941 4.54.46.11 (16 [57378])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> wrote in message
news:Pine DOT SUN DOT 3 DOT 91 DOT 1010212094219 DOT 12969L AT is...
>
> On Sun, 11 Feb 2001, Jeremiah wrote:
>
> > How do i call interrupts with inline assembly in djgpp compiler.  like:
> >  int 25h
>
> You don't need inline assembly for that, use __dpmi_int instead.  The
> DJGPP FAQ shows how to do that in section 18.2 and other sections of
> chapter 18.
>
> Issuing an INT instruction in assembly is not a good idea with DJGPP,
> since your program runs in protected mode, so the INT instruction is
> handled by protected-mode handler first.  Who knows what that will do?

TechHelp says this (on int 31h fn 300h = simulate real-mode interrupt):
-------8<--------
The DPMI host automatically handles all INT nn opcodes to provide
BIOS and DOS services transparently.  I'm not sure why you would
use this fn.
-------8<--------
So what's the problem? Is the problem with DPMI implementation which doesn't
simpulate ints correctly or what?

thanks
--
Alexei A. Frounze
alexfru [AT] chat [DOT] ru
http://alexfru.chat.ru
http://members.xoom.com/alexfru/
http://welcome.to/pmode/



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019