pmode <> rmode
pmode <> rmode
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?
Re:pmode <> rmode
disable paging, clear CR0 PE bit and jump far to a realmode segment? wasn't that the 386+ way?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?
Re:pmode <> rmode
What about "unreal mode"? How would I go about setting it from protected mode?
Re:pmode <> rmode
If you go in to pmode setup a20, gdt ,for 4gb,and then go back to real mode,you are in unreal mode.
ASHLEY4.
ASHLEY4.
Re:pmode <> rmode
AFAIK, it was what Ashley said and be sure not to reload your segment registers (except for code).