delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/07/19:01:32

To: djgpp AT delorie DOT com
Subject: Re: memory matters
Message-ID: <19970107.154711.4983.8.chambersb@juno.com>
References: <3 DOT 0 DOT 32 DOT 19970107201525 DOT 0069f258 AT alpha DOT luc DOT ac DOT be>
From: chambersb AT juno DOT com (Benjamin D Chambers)
Date: Tue, 07 Jan 1997 18:42:35 EST

On Tue, 07 Jan 1997 20:17:01 +0100 Filip Aben <9511482 AT luc DOT ac DOT be> writes:
>hi there,
>
>I've been programmin c for some years now and i finally took the step
>towards protected mode (no big step though): DJGPP. In real mode i 
>knew
>what i was doing as to allocating and accessing memory (segments, mem
>models and stuff), but in PM i haven't got a clue how it works...
>(selectors,gdt and stuff)
>Does anyone know or have a tutorial or some docs on this one??
Just treat everything as though you have a single 4gig segment (because
that's what it is).  The only problem is if you have to access specific
portions of memory, ie a0000 (for the screen).  The FAQ and docs explain
how to use _dos_ds to do this effectively.

>
>
>Any help GREATLY appreciated,
>|---------------------------|   "None are more hopelessly enslaved 
>then those
>| Filip Aben aka Agonizer   |    who falsely believe they are free"
>| 2nd year Computer Science |     [J.S.W. von Goethe]
>| at LUC Belgium            |
>| E-mail:Agonizer AT dds DOT nl    |
>|      or 9511482 AT luc DOT ac DOT be |   
>| Tel:089-611559            |
>|---------------------------|
>
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>=-=-=-=-=-
>
>               
>        +
>       / \
>     i/  o\i      !!!!  Merry christmas and a happy new year !!!!   
>     /o    \                   (hmmm....presents.....ahhhh [homer])
>     -  o  -                                |
>     /     \					   |	
>   i/  o  o \i                               ---> maybe a Ppro ;-)
>   /       o \
>   -    o    -
>  i/         \i
>  /  o     o  \
> /      o      \
>  -------------
>       ||
>-------------------
>
>             @@@@@@@             @@@  @@@       @@@@@@@@            
>@@@@@@@ 
>   @@@@@@   !@@         @@@@@@   @@!@!@@@  @@@       @@!  @@@@@@@@  
>@@!  @@@
>  @@!  @@@  !@! @!@!@  @@!  @@@  @!@@!!@!  @@!     @!!    @@!       
>@!@!!@! 
>  @!@!@!@!  :!!   !!:  @!@  !@!  !!:  !!!  !!@   !!:      @!!!:!    
>!!: :!! 
>  !!:  !!!   :: :: :   !!:  !!!  ::    :   !!:  :.::.: :  !!:        : 
>  : :
>   :   : :              : :. :             :              : :: :::     
>     
>                     [HTTP://WWW.LUC.AC.BE/~9511482/..]
>

- Raw text -


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