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" Sender: halo1 AT zahav DOT net DOT il To: "MarKol" 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: (markol4@wp.pl) Subject: Re: DS and ESP References: <968-Mon18Feb2002212153+0200-eliz AT is DOT elta DOT co DOT il> 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 Precedence: bulk > From: "MarKol" > 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.