Mail Archives: djgpp/2001/09/13/12:17:53
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 -