pmode <> rmode

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Mastermind

pmode <> rmode

Post by Mastermind »

I have not implemented a reliable V86 monitor yet so I need to switch reliably between real mode and protected mode. How can I exit protected mode so that none of the important stuff gets lost?
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:pmode <> rmode

Post by Candy »

Mastermind wrote: I have not implemented a reliable V86 monitor yet so I need to switch reliably between real mode and protected mode. How can I exit protected mode so that none of the important stuff gets lost?
disable paging, clear CR0 PE bit and jump far to a realmode segment? wasn't that the 386+ way?
Mastermind

Re:pmode <> rmode

Post by Mastermind »

What about "unreal mode"? How would I go about setting it from protected mode?
ASHLEY4

Re:pmode <> rmode

Post by ASHLEY4 »

If you go in to pmode setup a20, gdt ,for 4gb,and then go back to real mode,you are in unreal mode.

ASHLEY4.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:pmode <> rmode

Post by Candy »

AFAIK, it was what Ashley said and be sure not to reload your segment registers (except for code).
Post Reply