delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/12/11:36:21

Date: Thu, 12 Jun 1997 18:34:55 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Lonnie McCullough <lonniem AT cs DOT utexas DOT edu>
cc: djgpp AT delorie DOT com, a AT ja DOT com
Subject: Re: Descriptors
In-Reply-To: <339f99ca.1518328@news.nol.net>
Message-ID: <Pine.SUN.3.91.970612183244.9257c-100000@is>
MIME-Version: 1.0

On Thu, 12 Jun 1997, Lonnie McCullough wrote:

> >I would like to have a segment register that I can freely modify and use
> >without causing problems in my program. Is this possible, and is so
> >which segment regs can i use. 
>
> You can probably use fs and gs because in the documentation for the
> far pointer functions it says that fs and gs are used by the far
> pointer and movedata routines (but don't assume that fs and gs wll

I suggest to use FS and leave GS alone.  FS is guaranteed to not be used 
by any of the libc functions, unless you call `farptr' functions 
explicitly.  GS is used by a lot of library functions.

- Raw text -


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