delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/06/08:54:36

Date: Thu, 6 Jan 2000 12:01:24 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Str|mberg <ams AT ludd DOT luth DOT se>
cc: DJGPP <djgpp AT delorie DOT com>
Subject: Re: The endless int31 hooking debugging continued
In-Reply-To: <200001051417.PAA28457@father.ludd.luth.se>
Message-ID: <Pine.SUN.3.91.1000106120105.20220G-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 5 Jan 100, Martin Str|mberg wrote:

> One more thing: is the cs selector read-only?

Yes, code segment cannot be written to in protected mode; if you try,
you get a GPF.

But you shouldn't need to: once you load DS with the normal DJGPP data
selector, you should refer to data without the segment override.
Since DJGPP sets up DS and CS to have the same base and the same limit
(precisely for this reason), you can freely access any variable via DS
once it is set.

- Raw text -


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