From: Andrew Newsgroups: comp.os.msdos.djgpp Subject: Re: Jump from timer interrupt? Date: Thu, 01 May 2003 21:44:46 +1000 Organization: ECLiPSE Lines: 31 Message-ID: References: NNTP-Posting-Host: p162-tnt8.syd.ihug.com.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: lust.ihug.co.nz 1051789498 23172 203.173.147.162 (1 May 2003 11:44:58 GMT) X-Complaints-To: abuse AT ihug DOT co DOT nz NNTP-Posting-Date: Thu, 1 May 2003 11:44:58 +0000 (UTC) X-Newsreader: Forte Agent 1.92/32.572 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >I am writing a music sequencer program for DOS using djgpp 2.01 >and gcc 2.7.2.1, and it works well. However, I have a small Go and grab DJGPP 2.03 as the 2.01 is very old. The GCC you have is also very old and if you start coding C++ on it you may find out that it is not very compliant with the latest C++ standard that came out after it was released. If you do upgrade then I would suggest upgrading all of the other programs as well. >problem: Because I use my own timer interrupt, >the PC clock will not be updated during the time I run >the sequencer. Is it possible to jump from my interrupt routine >to the PC timer interrupt once in a while, to update the PC clock >at 18.2 Hz? Or is there another way to solve the problem? ..snip.. I use allegro to setup a 1msec timer and it chains and takes care of the TOD tick for the PC clock. You can cut down allegro in about 30-90 minutes to remove the bits you need into a very small lib. If you use Allegro as it currently stands (4.0.3 release at www.allegro.com) may save you allot of time as it also has drivers for allot of sound cards and it is cross platform. If you are going to use the app under Windows 2000 or XP then go and grab VDMSound at http://www.ece.mcgill.ca/~vromas/vdmsound/ Andrew