Xref: news-dnh.mv.net comp.os.msdos.djgpp:1125 Path: news-dnh.mv.net!mv!news.sprintlink.net!sunic!sunic.sunet.se!news.funet.fi!news.csc.fi!nokia.fi!ntc.nokia.com!nmpou.nmp.nokia.com!pirkola From: pirkola AT nmpou DOT nmp DOT nokia DOT com (Rauno Pirkola) Newsgroups: comp.os.msdos.djgpp Subject: Re: [Q] Making DJGPP use SEL:OFF Date: 24 Jul 1995 11:04:18 GMT Organization: Nokia Mobile Phones / Oulu, Finland Lines: 38 Sender: pirkola AT nmpou DOT nmp DOT nokia DOT com () Distribution: world References: <805952331 DOT 111snx AT techm DOT pl DOT my> Reply-To: pirkola AT nmpou DOT nmp DOT nokia DOT com Nntp-Posting-Host: ouvs33.nmp.nokia.com To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp In article <805952331 DOT 111snx AT techm DOT pl DOT my>, kenfoo AT techm DOT pl DOT my (Kenneth Foo) writes: >Hi...can anyone point out to me how I can make DJGPP 2 >use a SELECTOR:OFFSET combination to address a memory space instead >of using internal pointers (which uses a fixed DS as the selector) ? > >Thanks! > I don't use djgpp2 (yet) but you should check file include/sys/farptr.h. I think GAS doesn't support ES:, FS: etc, but you can add 'data' within the code (was done in the file above) Syntax is like this: asm( ... " .byte $0x64 \n" /* 0x64 == FS: :) */ " movw (%%edi),%%ax \n" ... Prefixes index (not tested, but should be correct) CS: 0x6e DS: 0x7e ES: 0x26 FS: 0x64 GS: 0x65 SS: 0x36 PS. I found these out yesterday! Hope this helps! - Rane