From: fmarcos AT jet DOT es (Fernando Marcos) Newsgroups: comp.os.msdos.djgpp Subject: Re: Question on farpoke Date: Sun, 29 Sep 1996 16:44:09 GMT Organization: A poorly-installed InterNetNews site Lines: 27 Message-ID: <52m9ce$hpl@artemis.ibernet.es> References: NNTP-Posting-Host: info25.jet.es To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Eli Zaretskii wrote: >On Wed, 25 Sep 1996, Mirko Geffken wrote: >> 1) If I use the farpoke routine (don't know >> the exact command at the moment) and look at the assembly I can see >> something like .byte 0x64 assembled before the mov instruction. >> My question, what exactly does this do? >This is the FS: segment override. Gas (the GNU assembler) doesn't handle >these well, so the usual practice is to put them in as .byte constants. I had trouble with segment prefixes some time ago. I discovered that replacing movb %bx,%fs:200 with fs movb %bx,200 solved the problem, and is a LOT easier to read than those '.byte' statements. Hope this helps. Greets all.