Date: Thu, 6 Jan 2000 12:01:24 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Martin Str|mberg cc: DJGPP Subject: Re: The endless int31 hooking debugging continued In-Reply-To: <200001051417.PAA28457@father.ludd.luth.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.