www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/12/13/12:13:25

Date: Mon, 13 Dec 93 11:39:28 -0500
From: DJ Delorie <dj AT ctron DOT com>
To: peprbv AT cfa0 DOT harvard DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: calling a real-mode program

> > These values are normally returned from other real-mode calls.  For
> > example, some drivers have an int 0x2f that you do which returns a far
> > pointer to their regular API.  This pointer is a real-mode
> > segment:offset pointer.  These are the values that you pass to
> > _go32_dpmi_simulate_*.

> Maybe I'm making things harder than necessary.  I want to issue an unsupported
> int 21 call, and I thought I needed to load a real-mode program and have it
> make the call.  Can I, instead, set up data areas in real memory, then get the
> real-mode int 21 vector and do a _go32_dpmi_simulate_fcall_iret() to that?

Oh - that's easy then.  Use _go32_dpmi_simulate_int().  For small data
requests, use the transfer buffer referenced in <go32.h>'s info
structure.


- Raw text -


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