Mail Archives: djgpp/1997/01/07/19:01:32
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 -