Message-ID: <000901be53ae$8a2ef260$768904d0@default> From: "Steve Axsom" To: Subject: Re: Small problem with instruction sorting Date: Mon, 8 Feb 1999 17:01:10 -0500 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 5.00.0810.800 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800 Reply-To: djgpp AT delorie DOT com This may not be the best way to do it, but it's the easiest ;); try puting a rest before the key input: #include #include main() { printf("HELLO WORLD. PRESS KEY"); rest(1250); while(!bioskey(1)); exit(0); } -Shane ----- Original Message ----- From: Jaime Tejedor Gomez Newsgroups: comp.os.msdos.djgpp To: Sent: Monday, February 08, 1999 5:29 AM Subject: Small problem with instruction sorting > > Hi all > > I've got the following program: > >#include >#include >main() >{ >printf("HELLO WORLD. PRESS KEY"); >while(!bioskey(1)); >exit(0); >} > > My question is: > > How can I prevent DJGPP from reordering instruction's ejecution to make it >print the message before waiting for the key? Sorry if that's a dumb >question, but I've searched in FAQ, info and Rhide help and found nothing >about it. TIA. > >-- >METALBRAIN > >"Smallest programs are the greatest" > >email: metalb AT www DOT esi DOT us DOT es - http: www.esi.us.es/~metalb >