Can I use FS, GS, DS, ES etc as temporary store room for variable since windows only use EBX, EBP, ESI & EDI.

Posted on 2004-03-13 08:26:16 by QS_Ong
Tell me how you going to use them...
Posted on 2004-03-13 09:26:19 by roticv
No, you can not. It's used by processor to calculate linear address. Index of selector that is used to hold base which is added to offset.

to rotcive: as I get it - he wants to use it as a place holder.
He's gonna treat it as general purpose register :) an obvious lack
of basics about linear address calculations.
Posted on 2004-03-13 10:01:37 by The Svin
In a DOS program, probably.

In a Win32 program, definitely not. You will get an error (probably GPF) for trying to load an invalid segment selector.
Posted on 2004-03-15 16:07:09 by tenkey
Thanks a lot :)
Posted on 2004-03-16 07:39:11 by QS_Ong