www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/03/08:17:33

Date: Mon, 3 Nov 1997 14:13:46 +0100 (MET)
From: Michal Mertl <xmerm05 AT manes DOT vse DOT cz>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Cc: leger_v AT bluewin DOT ch, djgpp AT delorie DOT com
Subject: Re: function pointer
In-Reply-To: <Pine.SUN.3.91.971102145756.11098e-100000@is>
Message-Id: <Pine.ULT.3.95.971103140954.5409B-100000@manes.vse.cz>
Mime-Version: 1.0

On Sun, 2 Nov 1997, Eli Zaretskii wrote:
> > Is that possible to take the pointer of the function bankswitch ?
> > I've already taken the buffer with __tb.
> > Perhaps the pointer is a pointer in the conventional memory but I don't
> > know. Please help me !
> 
> You need to use the `_go32_dpmi_simulate_fcall' library function.  It
> allows you to call real-mode far functions from protected-mode
> programs.  Look it up in the library reference.
> 
I my realmode library I used it too and it was faster than int 10h function,
but Shawn said that he measured under protmode DJGPP and the int was lot
faster. This of course may depend quite a lot on his card or configuration.
May be the reflecting of ints is better in CWSDPMI? 

BTW I don't see any reason for writing just another library, maybe just to
practice coding.

Michal "MiMe" Mertl
  xmerm05 AT vse DOT cz


- Raw text -


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