Mail Archives: djgpp/1996/09/29/15:36:04
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 -