Mail Archives: djgpp/1996/07/25/03:25:27
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 -