[comp.sys.intel] 386 Protect mode references/source needed

ks26+@andrew.cmu.edu (Kenneth Sykes) (09/29/88)

I am trying to write a protected mode application under the 386, and am
looking for pointers to books/articles and especially source code for
entering and leaving protected mode.

Ideally, I would like to be able to go into protect mode with a flat address
space, do stuff in 32 bit segments, and then return to real mode when necessary

Paging and multiple tasks are not needed, but would be nice to have.

Any help would be appreciated.

Sincerely,
  Ken Sykes

P.S. Source code should run under MS-DOS and compile with MASM 5.1 (or lower)
     I already have Crawford and Gelsinger's book.

munck@linus.UUCP (Robert Munck) (10/02/88)

In article <0XEIrAp88k-0MEAUxy@andrew.cmu.edu> ks26+@andrew.cmu.edu (Kenneth Sykes) writes:
>I am trying to write a protected mode application under the 386, and am
>looking for pointers to books/articles and especially source code for
>entering and leaving protected mode.
>
>Paging and multiple tasks are not needed, but would be nice to have.

If you can afford a couple of hundred dollars, by far your easiest
path is to run under the Phar Lab Run-Time Extender.  It gets you
in and out of protected mode AND makes all DOS services available
to your protected mode program.

If you can wait a bit, I'm writing an OS for the 386 that supports
full multitasking, protection, dynamic paging, and just about every-
thing else the 386 can do.  It's in Pascal and will be available in
the public domain when it's debugged, before the end of the year.
I've written maybe two-dozen operating systems and real-time kernels
in 22 years, and the 386 is by far the most enjoyable to write an
OS for.  This one is "multi-level secure" -- supports users and data
at different classification levels and markings -- and is intended to
support the new standard Ada Programming Support Environment interface,
DOD-STD-1838A.
                            -- Bob Munck, munck@MITRE-Bedford.ARPA

prune@guardian.UUCP (prune) (10/14/88)

ks26+@andrew.cmu.edu (Kenneth Sykes) writes:
>    I am trying to write a protected mode application under the 386, and am
> looking for pointers to books/articles and especially source code for
> entering and leaving protected mode.
> 
>    Ideally, I would like to be able to go into protect mode with a flat
> address space, do stuff in 32 bit segments, and then return to real mode
> when necessary. Paging and multiple tasks are not needed, but would be nice
> to have. Any help would be appreciated.

   Ken, do you have access to a current copy of the Intel RLL Builder User's
Guide ? This book contains templates for doing a lot of useful things in the
386 flat architecture, hard code provided in the book. Very recent copies
contain floppies with the templates. If you can't get your hands on one, please
e-mail me your US-mail address: the technical writer will send you a hard copy
for your very own.

prune@guardian.UUCP (prune) (10/14/88)

   Sorry; I used an old .signature file (I transferred last month).