delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/04/30/23:30:04

From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Jump from timer interrupt?
Date: Wed, 30 Apr 2003 22:14:19 CDT
Organization: Rice University, Houston, TX
Lines: 11
Message-ID: <3eb0910b.sandmann@clio.rice.edu>
References: <MAPI DOT Id DOT 0016 DOT 00333138303633303030303930303110 AT MAPI DOT to DOT RFC822>
NNTP-Posting-Host: clio.rice.edu
X-Trace: joe.rice.edu 1051758985 2485 128.42.105.3 (1 May 2003 03:16:25 GMT)
X-Complaints-To: abuse AT rice DOT edu
NNTP-Posting-Date: Thu, 1 May 2003 03:16:25 +0000 (UTC)
X-NewsEditor: ED-1.5.9
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> 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? 

You can not jump out of your interrupt routine - but you can chain to 
the original interrupt routine ocassionally to keep the clock up
to date.  I don't know if the c wrappers allow this (you would have
to study them closely) - you might need to write your own wrapper.

- Raw text -


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