delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/14/04:00:23

Date: Thu, 14 May 1998 10:59:54 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Sven Grundmann <grundema AT uni-duesseldorf DOT de>
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: <Pine.SUN.3.91.980514105927.287C-100000@is>
MIME-Version: 1.0

> 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.

- Raw text -


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