delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/22/09:23:55

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Date: Fri, 22 Feb 2002 16:19:17 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "MarKol" <markol4 AT wp DOT pl>
Message-Id: <6480-Fri22Feb2002161916+0200-eliz@is.elta.co.il>
X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <a55f0s$dom$1@news.tpi.pl> (markol4@wp.pl)
Subject: Re: DS and ESP
References: <a4rfgu$sbg$1 AT news DOT tpi DOT pl> <968-Mon18Feb2002212153+0200-eliz AT is DOT elta DOT co DOT il> <a55f0s$dom$1 AT news DOT tpi DOT pl>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "MarKol" <markol4 AT wp DOT pl>
> Newsgroups: comp.os.msdos.djgpp
> Date: Thu, 21 Feb 2002 21:25:51 +0100
> 
> I'd like to write service routines in C. You said that GCC assumes
> CS=DS=SS, so how can I write my routine in C when I'm operating
> on stack provided by DPMI??

Use the wrapper functions provided by the library, those which begin
with _go32_dpmi_.  The FAQ explains this in section 18.9.  These
wrappers switch the stack before calling the user-defined handler.

Or you could write your own wrappers as needed by your application.

- Raw text -


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