delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/12/12/17:09:59

Date: Sun, 12 Dec 93 16:09:43 EST
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: calling a real-mode program

I must be missing something.  I want to call a real-mode program to issue
some DOS calls which are not supported by GO32 1.11.  I'm already doing this
using the Ergo DPM-16 extender.  In that environment, I need a DEF file to
tell the linker about the DLL which is to be loaded.  Everything I do looks
like it translates into an equivalent go32 call, but I can't figure out how
to actually load the program and find out where it is loaded.  The docs show
an example:
     r.x.cs = some_segment;
     r.x.ip = some_offset;
     r.x.ss = r.x.sp = 0;
     _go32_simulate_fcall(&r);
How do I get values for some_segment and some_offset and make them point at
something useful?

- Raw text -


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