www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/27/01:48:47

Date: Sun, 27 Aug 2000 08:43:30 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
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: <Pine.SUN.3.91.1000827084129.3086B-100000@is>
MIME-Version: 1.0
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019