www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/29/15:36:04

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: <Pine DOT SUN DOT 3 DOT 91 DOT 960929112824 DOT 20703T-100000 AT is>
NNTP-Posting-Host: info25.jet.es
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> 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.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019