Date: Sun, 27 Aug 2000 08:43:30 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Ilari DOT Liusvaara AT mbnet DOT fi cc: djgpp AT delorie DOT com Subject: Re: Inline memory access In-Reply-To: <39a7df3c.25914103@news.mbnet.fi> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.