Mail Archives: djgpp/1998/09/04/08:30:42
> 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
- Raw text -