delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/08/22:46:18

Message-ID: <005201be53a8$7d477a00$788904d0@default>
From: "Steve Axsom" <sssaxsom AT smithville DOT net>
To: <djgpp AT delorie DOT com>
Subject: Re: Small problem with instruction sorting
Date: Mon, 8 Feb 1999 16:14:05 -0500
MIME-Version: 1.0
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 might not be the best way of doing it, but this is the way I would
=) ; add a rest before the key input:
----------------------------------------------------------------------------
-------------------
#include <stdio.h>
#include <stdlib.h>
main()
{
printf("HELLO WORLD. PRESS KEY");
rest(1250);
while(!bioskey(1));
exit(0);
}

                                                                           -
Shane

----- Original Message -----
From: Jaime Tejedor Gomez <metalb AT bart DOT us DOT es>
Newsgroups: comp.os.msdos.djgpp
To: <djgpp AT delorie DOT com>
Sent: Monday, February 08, 1999 5:29 AM
Subject: Small problem with instruction sorting


>
> Hi all
>
> I've got the following program:
>
>#include <stdio.h>
>#include <stdlib.h>
>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
>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019