delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/06/13:13:28

X-Apparently-From: <prashant?tr AT yahoo DOT com>
From: Prashant TR <prashant_tr AT yahoo DOT com>
To: "Gareth Williams" <ghw2002tii AT hotmail DOT com>
Subject: Re: Setting a variable's selector? - Clarification - I hope.
Date: Mon, 6 Dec 1999 22:19:30 +0500
X-Mailer: KMail [version 1.0.28]
Cc: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>, DJGPP Mailing list <djgpp AT delorie DOT com>
References: <19991206154415 DOT 3773 DOT qmail AT hotmail DOT com>
In-Reply-To: <19991206154415.3773.qmail@hotmail.com>
MIME-Version: 1.0
Message-Id: <99120622224702.00544@localhost.localdomain>
Reply-To: djgpp AT delorie DOT com

On Mon, 06 Dec 1999, Gareth Williams wrote:

> I had come to the same conclusion that the 16-bit real mode interface would 
> be easier.  But I have a couple questions regarding the 16-bit real mode...
> 
> I am guessing (going to try) the 
> __dpmi_simulate_real_mode_procedure_retf_stack function is the only way to 
> get a stack to my real mode function, and again to get it back.  Then can I 
> use _go32_dpmi_allocate_dos_memory to allocate the array needed for the 
> pnpbios to return data in?  (I pass a pointer to the structure/array it 
> returns the data there.)

The pointer you pass can be the address of the transfer buffer. Why would
you want to go for the DOS memory allocation which can be a little
cumbersome? And after the call, you can just copy the info. in the transfer
buffer and parse it, right?

Prashant
---------------------------------------------------
One pound of learning requires ten pounds of common
sense to apply it.

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

- Raw text -


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