delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/09/14/06:03:33

Date: Thu, 14 Sep 1995 11:34:48 +0200
From: vmeurs AT cs DOT utwente DOT nl
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: How to increase frequence of my timerroutine

Hi all,


I have a problem related to moving (working) real-mode code to protected mode.
I have a MIDI player that needs a timer interrupt routine to play midi events
(frequency depends on certain fields in the MIDI file). In real-mode I just
set the new frequency, and make sure my routine hooks the original timer func
at the original frequency (once every 55ms). I fear that in protected mode
things are more complicated than that.

I have seen the 'timer.c' sample file and I see how it works, but as I said
I'd like to change the frequency which (I think) could mess up other timing
stuff if I 'chain in' my procedure. I also want to keep the old frequency for
all existing timer procedures.

Is there a safe way to accomplish this? If so please mail me at the address
below.


Hope anybody can help me,

Richard van Meurs (vmeurs AT cs DOT utwente DOT nl)

- Raw text -


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