[comp.sys.ibm.pc.misc] Code to change from real mode to protected mode

rhl@computing-maths.cardiff.ac.uk (Robert Hartill) (04/04/91)

Can someone send (e-mail) me some code to switch to protected mode on a '386 

I'm not bothered about returning to real-mode, or returning to DOS,
'cos I don't intend doing so.

Commented code would be appreciated.

------
While I'm here, has anyone had any success writing protected mode programs
using Zortech DOS 386, that DON'T use the Phar Lap Dos Extender..
- I'm trying to do this, I won't make use of any library routines, or the
memory management system. I'm writing an operating system.

I can get 32-bit / '386 code, which needs the Extender,
I've managed to *cut* my code out of the .EXP file, and make it into a .COM
file, but then it runs in REAL-MODE. (Hence my request for switching code)

Can anyone suggest a better method ? (No 'use another compiler' type replies
please)

Thanks in advance
		robert.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::     Robert Hartill, Dept Of Computing Mathematics, UWCC, Cardiff, UK.     ::
::          e-mail : rhl@cm.cf.ac.uk         Fax : 0222 666182               ::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
A verbal contract isn't worth the paper it's written on.
-Samuel Goldwyn.
-------------------------------------------------------------------------------