Mail Archives: djgpp/1999/12/06/14:29:57
>On Thu, 2 Dec 1999, Gareth Williams wrote:
>
> > All Plug and Play BIOS Services which are accessible at runtime support
>a
> > bi-modal interface. The two modes supported are 16-bit REal Mode and
>16-bit
> > Protected MOde.
>
>This probably means that you should use the real-mode interface, since
>mixing 16-bit code with 32-bit code in the DPMI environment is tricky,
>if not impossible.
>
>So I think you need to forget about 16-bit PM selectors, and instead
>work via the real-mode interface, using the transfer buffer,
>__dpmi_int, and the other functions that allow to invoke real-mode
>procedures. If you have problems with doing that, please post
>specific questions.
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.)
Thanks for all of your commments and help.
Gareth.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
- Raw text -