From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: segment overrides Date: Wed, 15 Apr 1998 20:10:25 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 23 Message-ID: <35354C71.74CA@cs.com> References: <28A3AF71AD2 AT fharga DOT sun DOT ac DOT za> <35353886 DOT 6924 AT cs DOT com> NNTP-Posting-Host: ppp228.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 John M. Aldrich wrote: > > Of course you don't need that before every memory access; only those > which transfer data to conventional memory using the _farpokeX/_farpeekX > convention. And you only need the segment override once per looping > construct, as long as you don't call any library code that alters the > value of %fs. Never mind; you are probably right. I did some research after posting this and it is apparently necessary to use .byte 0x64 before each operation to tell the CPU to use %fs instead of %ds for the mov instruction. Sorry for the misinformation. -- --------------------------------------------------------------------- | John M. Aldrich |"Men rarely (if ever) manage to dream | | aka Fighteer I |up a god superior to themselves. Most | | mailto:fighteer AT cs DOT com |gods have the manners and morals of a | | http://www.cs.com/fighteer |spoiled child." - Lazarus Long | ---------------------------------------------------------------------