Page 1 of 1

Switching from PMode to Real Mode

Posted: Mon Aug 05, 2002 1:14 pm
by Matt
Could somebody give me the ASM code to switch from protected mode to real mode? All the stuff I could find in the internet about doing that makes no sense to me :-/
[glow=green,2,300]Thanks :D[/glow]

Re:Switching from PMode to Real Mode

Posted: Mon Aug 05, 2002 6:30 pm
by crazybuddha
mov eax,cr0
or al,1
mov cr0,eax

Re:Switching from PMode to Real Mode

Posted: Tue Aug 06, 2002 12:53 am
by matt
crazybuddha wrote:
mov eax,cr0
or al,1
mov cr0,eax

Re:Switching from PMode to Real Mode

Posted: Thu Aug 08, 2002 3:20 am
by frank
that is switching back .. (are you sure, you switched from realmode to pmode before?)

mov eax,cr0
or al,0
mov cr0,eax

and ofcourse do some otherstuff (don't know what, I don't have more than 1 mb of gig for nothing :P) -- search on the internet