Date: Tue, 2 Dec 1997 14:24:00 +0200 (IST) From: Eli Zaretskii To: Tan Pinghui cc: djgpp AT delorie DOT com Subject: Re: 16-bit & 32-bit mixed coding In-Reply-To: <199712020207.KAA07327@public.bta.net.cn> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 2 Dec 1997, Tan Pinghui wrote: > I'm very confused by the 386's 16-bit & 32-bit mixing coding. > Here are some questions, please help. > > (1) cs selector refers to 16-bit segment, and ds/es/fs/gs selectors to > 32-bit segments (D=1), ss to 16-bit segment, how do the instructions > operate? the stack? the data? What exactly are you asking? As far as I could see, the DJGPP's startup code sets CS, DS and SS to 32-bit segments. Is the question at all related to how DJGPP programs set up their segment registers?