Date: Tue, 06 Feb 2001 09:58:33 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "florianx" Message-Id: <1190-Tue06Feb2001095833+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 CC: djgpp AT delorie DOT com In-reply-to: <3a7ea0ab$0$25062@SSP1NO25.highway.telekom.at> (florianx AT drdos DOT org) Subject: Re: port from BorlandC to DJGPP References: <3a7ea0ab$0$25062 AT SSP1NO25 DOT highway DOT telekom DOT at> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "florianx" > Newsgroups: comp.os.msdos.djgpp > Date: Mon, 5 Feb 2001 13:46:58 +0100 > > I ported apmlib 0.9 beta to DJGPP, but I couldn't port only one funktion. > > Maybe someone can help me? See section 22.26 of the DJGPP FAQ list. If something there is unclear, please ask specific questions. In general, to call functions by their real-mode address, you use __dpmi_simulate_real_mode_procedure_retf with CS and IP members of the __dpmi_regs structure set to the real-mode address. Calls to `intr' and its friends should be replaced with __dpmi_int. And poking real-mode addresses should be done with _farpoke* functions (in this case, _farpokew).