delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/13/12:17:53

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: addressing question
Date: 13 Sep 2001 16:10:00 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 26
Message-ID: <9nqloo$9ji$1@nets3.rz.RWTH-Aachen.DE>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010913112105 DOT 354C-100000 AT is> <9nqdp9$22n2$1 AT pandora DOT alkar DOT net> <9nqggh$4gk$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <9nqitt$2mol$1 AT pandora DOT alkar DOT net>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1000397400 9842 137.226.32.75 (13 Sep 2001 16:10:00 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 13 Sep 2001 16:10:00 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

dima 3141596 <dima AT rts-ukraine DOT com> wrote:
>>You cannot do that, in a DJGPP application.  You *are* in PM, all the
>>time, so there's nothing to switch away from, into PM.

>  OK, I switch to PM in the asm module which was loaded from the boot
> sector of HDD. After I can start module written on the C (DJGPP). 

Even so, all GCC-compiled C code internally assumes DS=ES, all the
time.  If you don't want that, you can't use DJGPP for your
application.

> far*() is not  a functions, it's asm macros ! 

No, it's an inlined C function, consisting of a single inline assembly
block.  That's a different thing from a simple asm macro. In
particular, this construct allows for these to be used from optimized
C code.

> And how I said below I want to use pointers liked method to
> accessing to the memory.

I know you want that. But as I already said: you can't have it.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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