Path: 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 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.