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

Message-ID: <004301be53af$86774c20$768904d0@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 17:08:13 -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

Sorry for sending that three times; my connection was screwed up,
so I thought the 1st two messages weren't sent...

                                                                    -Shane

----- Original Message -----
From: Steve Axsom <sssaxsom AT smithville DOT net>
To: <djgpp AT delorie DOT com>
Sent: Monday, February 08, 1999 5:01 PM
Subject: Re: Small problem with instruction sorting


>    This may not be the best way to do it, but it's the easiest ;);
>try puting 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