delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/25/03:25:27

Date: Thu, 25 Jul 1996 09:22:14 +0200 (MET DST)
From: Mark Habersack <grendel AT ananke DOT amu DOT edu DOT pl>
To: Alex Rezinsky <alexr AT msil DOT sps DOT mot DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Far procedure call
In-Reply-To: <9607241126.AA04659@msil.sps.mot.com>
Message-ID: <Pine.NEB.3.93.960725091601.15635A-100000@ananke.amu.edu.pl>
MIME-Version: 1.0

On Wed, 24 Jul 1996, Alex Rezinsky wrote:

>        How can I call the procedure from another segment?
>for long far call.
You have to have the selector & offset to the segment the procedure you want
to call lives in. Then you have to put by hand the far call code into an
assembler statement using supplied selector:offset values.

 >
>        For example these calls are neccessary to 
>communicate with PnP BIOS (the PnP BIOS provides header
>with 16-bit protected mode base segment (4 bytes) and 
>offsset (2 bytes) of the function the user have to call
Are you sure segment is 4 bytes and offset 2? If it is a prot mode address
then *SEGMENT SELECTOR* should be given in 2 bytes while *OFFSET* is
contained in 4 bytes.

 >to get resources allocation information). IS IT POSSIBLE
>TO EXECUTE SUCH CALL FROM THE DJGPP ENVIRONMENT ?
See above. I don't remember the code for the far call but you should be able
to find the info in the Net.

Greetings, Mark

/*******************************/
/** So here I am once more... **************************************/
/** When you grown up and leave your playground, where you kissed **/
/** your Prince and found your Frog - remember the Jester that    **/
/** showed you tears, a Script for Tears... ************************/
/*********************************************/

- Raw text -


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