Date: Thu, 14 May 1998 10:59:54 +0300 (IDT) From: Eli Zaretskii To: Sven Grundmann cc: djgpp AT delorie DOT com Subject: Re: programming a pci A/D Card In-Reply-To: <6jcf32$2fp@selena.rz.uni-duesseldorf.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk > I just ported the first first function of that > 16 Bit Lib with int86 function in gcc instead of geninterrupt in BC Don't use int86, use __dpmi_int instead. It has a very similar interface, but works in a way that's much more reliable. In particular, the nuisance with _NAIVE_DOS_REGS and _BORLAND_DOS_REGS (see library reference), which can cause subtle bugs, doesn't exist with __dpmi_int. > Does gjgpp switch to realmode with int86 ? Calling any real-mode interrupt function involves a switch to real mode, since the BIOS code cannot run in protected mode. But the switch isn't done by DJGPP, it is the DPMI server that does it.