From: tomstdenis AT my-dejanews DOT com Newsgroups: comp.os.msdos.djgpp Subject: Re: Help, Protected Mode... Date: Fri, 04 Sep 1998 12:18:16 GMT Organization: Deja News - The Leader in Internet Discussion Lines: 32 Message-ID: <6solq8$fnm$1@nnrp1.dejanews.com> References: <3 DOT 0 DOT 5 DOT 16 DOT 19980903191614 DOT 2f0f5cbe AT mail DOT tir DOT com> NNTP-Posting-Host: 206.75.140.161 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk > Okay, I'm sitting here looking at intel op-codes trying to figure out how > to enter protected mode and the command to enable the PM bit is said to be > "privileged." How do I enter protected mode through ASM? Is there a way > to use DJGPP to compile an OS and still be 32-bit? Thanx. > In real mode? Use mov eax,1 mov cr0,eax JMP FAR selector:offset Now you are in protected mode. For more compatibility try this mov eax,cr0 or eax,1 mov cr0,eax JMP FAR selector:offset or for 286 compatibility.... LMSW OR AX,1 SMSW ... hehehe tom -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum