Mail Archives: djgpp/2000/08/27/01:48:47
On Sat, 26 Aug 2000 Ilari DOT Liusvaara AT mbnet DOT fi wrote:
> If you really need to do that using inline assembly, just load value
> of variable _go32_info_block.selector_for_linear_memory
> into some segment register (I would recomend ES)
I would *not* recommend using ES for this purpose, since ES is used by
the code generated by GCC. Loading something else into ES means that you
need to save and restore the previous value of ES.
It's much easier to use FS for this: neither GCC-generated code nor the
DJGPP library use that register.
- Raw text -