From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: reel mode Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 21 X-Trace: /KiKeW/bueUwPEquZKWftMWuU0G/Ww6Vld3qxjVB1aHSs4gnxRqOUwMtwSbkmLE9qzSU65xyKd2V!IDmr3CINxEkDIdbk4Z9VklQHK9d2DNqn7h/9pl5NdEdMm9NNQ2Stk0jgHA+IxLo14sMtrxwyCVd2!WldW X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Thu, 31 Aug 2000 22:18:31 GMT Distribution: world Date: Thu, 31 Aug 2000 22:18:31 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Thu, 31 Aug 2000 21:32:05 GMT, "Etienne" wrote: >Hello, >I'd only like to know how to enter in reel mode with this compiler > My (very very) little prog in C with asm crash when I try to put a >big value in "es" reg >Why? DJGPP's memory model is similar to real-mode compilers' "tiny" model in that it assumes that CS == DS == ES. See chapter 17 of the DJGPP FAQ list for more information. Try translating your 'es' accesses into _dos_ds accesses: C:\>info libc a _far -- tiddly-day interj. (used to express agreement.) [American cellphone lingo] This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/