Message-ID: <007601bc80e0$f2fc9380$4ff8c6c3@johan> From: "Johan Henriksson" To: Subject: Re: Protected mode stuff Date: Tue, 24 Jun 1997 22:52:57 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com from Johan Henriksson Second: jhe75 AT hotmail DOT com Primary mail: jhe AT epsilon DOT tninet DOT se Leadprogrammer and FX-specialist at Real software http://realsoftware.cjb.net #UIN 12035895 ***************************************************************** -----Original Message----- From: Jared Stevens To: djgpp AT delorie DOT com Date: Thursday, June 24, 1999 8:34 PM Subject: Protected mode stuff >Does anybody know of anyplace that would have some sample code for a >program that just jumps into pmode prints something on the screen or >something, and then goes back to real mode and exits? >Jared Stevens > int main(void) { printf("foobar"); return(0); } DJGPP goes into pmode at start, thanks to the stub. And of course, it shuts it down too. Nice and easy.