From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: segment operator Date: Wed, 16 Apr 1997 05:56:19 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 22 Message-ID: <33546A03.7F8@NO.SPAM.cs.com> References: <33550745 DOT B59 AT netime DOT com> NNTP-Posting-Host: ppp102.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Derek Greene wrote: > > is tehre any kind of segment operator or or function in djgpp? It depends on what you need one for. DJGPP runs in flat model 32-bit protected mode, meaning that the entire program fits in a single segment with an upper limit of 4 GB. You don't need segments to access anything inside your address space. To access memory outside of your address space, you need to use one of several techniques to prevent your programs from violating memory protection. You cannot, for instance, directly access the VGA memory at 0xa0000 without one of these techniques. Please download the DJGPP FAQ (v2/faq210b.zip from SimTel) and read chapters 10, 17, and 18 - all the information you need should be there. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | Proud owner of what might one | http://www.cs.com/fighteer | | day be a spectacular MUD... | Plan: To make Bill Gates suffer | ---------------------------------------------------------------------