Mail Archives: djgpp/1997/06/12/11:36:21
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 -