delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/04/10/04:15:18

From: manni DOT heumann AT gmx DOT de (Manni Heumann)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Basic IRQ mapping ... What am I doing wrong ?
Date: 10 Apr 2001 08:06:28 GMT
Lines: 20
Message-ID: <Xns907F66D2886A4manniheumanngmxde@130.133.1.4>
References: <3AE73146 AT MailAndNews DOT com>
NNTP-Posting-Host: udp063895uds.uni-bielefeld.de (129.70.100.205)
X-Trace: fu-berlin.de 986889988 7317324 129.70.100.205 (16 1428)
User-Agent: Xnews/4.01.30
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eduardo TUDA Lorenzetti Pellini <dochell AT MailAndNews DOT com>
wrote on 06 Apr 2001: 

[snip]

>unsigned int ct;
[snip]

> while(ct<=100); //just to wait a few seconds...
[snip]

Did you compile with any optimizations?
If you declare ct as volatile, the program just might start 
working. At least it will get out of the while loop at some 
point:-)

Manni

PS: Why did you declare your handler functions int? Wouldn't 
void make a lot more sense?

- Raw text -


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