delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/14/04:46:17

From: ovek AT arcticnet DOT no (Ove Kaaven)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GAS segment override
Date: Fri, 14 Nov 1997 06:31:43 GMT
Organization: Arctic Net AS
Lines: 27
Message-ID: <346bef60.257768078@news.arcticnet.no>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 971113191042 DOT 24843A-100000 AT is>
NNTP-Posting-Host: alwayscold.darkness.arcticnet.no
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 Tue, 11 Nov 1997, Johan Levin wrote:
>
>> Allegro does it this way:
>> 	.byte 0x2e
>> 	movw	___djgpp_ds_alias, %ax
>> 
>> But I'd like a neater wayt than to use '.byte'.
>> '.byte' looks like a temporary solution.
>
>It's not temporary, it *is* the solution.  See section 17.2 of the DJGPP 
>FAQ list (v2/faq210b.zip), it explicitely tells you to do it the Allegro 
>way (unless you want to get in trouble).

I doubt. The trouble is with

mov cs:mem

not with

cs        <-- separate and valid instruction
mov mem

as far as I know, and using .byte is an unnecessary complication for a
workaround that is already built-in (the separate "cs" instruction).
Is this wrong?

- Raw text -


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