Article View: comp.os.msdos.programmer
Article #5826Re: Protected mode/Real mode switching
From: Daniel Creswell
Date: Wed, 17 Apr 1991 07:59
Date: Wed, 17 Apr 1991 07:59
14 lines
1029 bytes
1029 bytes
Which chip are you using 386 or 286? If it's a 386 then there's an instruction to do it. However as you're asking this question I think you're on about the 286. Now the bad news. The only way to switch back to real mode is to use the reset op. i.e. Just like you'd powered off and on. I dunno how it's done technically but I imagine you wedge a vector and once reset is achieved your code gets control back. At this point now doubt you'd wanna restore register's etc. Hope thats some help - I guess a Microsoft programmer on the Windows team'd be perfect for this question. Cheers, Dan.
Technical Details
Message-ID:
<37390009@hpopd.pwd.hp.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!otter.hpl.hp.com!hpopd!dccReferences:
<1991Apr15.160333.8107@msuinfo.cl.msu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!otter.hpl.hp.com!hpopd!dcc From: dcc@hpopd.pwd.hp.com (Daniel Creswell) Newsgroups: comp.os.msdos.programmer Subject: Re: Protected mode/Real mode switching Message-ID: <37390009@hpopd.pwd.hp.com> Date: 17 Apr 91 07:59:42 GMT References: <1991Apr15.160333.8107@msuinfo.cl.msu.edu> Organization: Hewlett-Packard CCG-PWD, UK. Lines: 14