Mail Archives: djgpp/1999/02/01/20:16:46
Nate Eldredge wrote:
>
> Eli Zaretskii wrote:
> >
> > On Sun, 31 Jan 1999, John S. Fine wrote:
> >
> > > > Is anything wrong with section 17.4?
> > >
> > > DS, ES, FS, GS ??
> > Here's what section 17.4 says:
> >
> > *A*: You can safely clobber EAX, ECX, and EDX, but must save and restore all
> > other registers at the end of your assembly function.
> >
> > I think "all other registers" include DS, ES, FS, and everything
> > else.
>
> In which case you might mention that the floating-point registers can be
> safely clobbered.
I hate arguing with the experts, but I don't think
"all other registers" carries any useful information.
What's a "register"? Does it mean the same thing to
me that it meant to whoever wrote the FAQ?
I think EFLAGS is a register. Do you think I need
to do pushf/popf around my code so I won't disturb
whatever the caller left in the C-bit (part of eflags)?
I know I don't need to, so I *know* my definition of
"all registers" differs from the FAQ author's definition
of "all registers"; But I still don't know his
definition.
On FS and GS, I still hate doubting Eli, but can someone
make a stronger case one way or the other, rather than
leave us with "the FAQ seems to say preserve them and the
FAQ is probably correct".
--
http://www.erols.com/johnfine/
http://www.geocities.com/SiliconValley/Peaks/8600/
- Raw text -