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: NNTP-Posting-Host: alwayscold.darkness.arcticnet.no To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Eli Zaretskii 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?