From: "0/0" Newsgroups: comp.os.msdos.djgpp Subject: Re: wait for vertical retrace Date: 4 Jun 1999 21:49:00 GMT Organization: Value Net Internetwork Services Inc. Lines: 25 Message-ID: <01beaed3$de0737a0$fc4484ce@sub> References: <7j95e8$ajm$1 AT fe1 DOT cs DOT interbusiness DOT it> <37582c32 DOT 0 AT news DOT uni-bielefeld DOT de> NNTP-Posting-Host: fgna-252.value.net X-Newsreader: Microsoft Internet News 4.70.1162 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Manni Heumann wrote in article <37582c32 DOT 0 AT news DOT uni-bielefeld DOT de>... > "Bonifati" wrote: > >i copied this code to wait for the vertical retrace from a book: > > > >void Wait_Vertical_Retrace (void) > >{ > > while ( (inp (0x3da) && 0x8) != 0 ) {}; > > while ( (inp (0x3da) && 0x8) == 0 ) {}; > >} > > > >my program works without waiting for vertical retrace; when i include it, it > >fails on run-time (i think it goes in infinite loop into > >Wait_Vertical_Retrace function). > >i can't figure out what's wrong with this function. please help me! > > > > Are you sure you meant "&&" and not "&" ? > I agree if that is how it is, change it to just one &...