delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/02/05:03:25

Date: Wed, 2 Dec 1998 10:52:45 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: 4pisecny AT fpv DOT umb DOT sk
cc: djgpp AT delorie DOT com
Subject: Re: timer interrupt handler
In-Reply-To: <199812011726.SAA18121@sparc.fpv.umb.sk>
Message-ID: <Pine.SUN.3.91.981202105141.24125K-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Tue, 1 Dec 1998 4pisecny AT fpv DOT umb DOT sk wrote:

> When i set timer interrupt handler to my routine, i set his frequency to
> about 120Hz. It is my internal counter. Now i am counting how many times is
> called my new routine and in rquired intervals (in about 18.2Hz) i am
> calling original handler. I need this because it will turn off disks and set
> internal bios or dos timer. I have not found any chance to do this.

Since the original handler is a real-mode function that ends with an
IRET, you should use the library function
`__dpmi_simulate_real_mode_procedure_iret'.

Also, I suggest to look at the PCTIME package (the FAQ has the URL
where to find it in section 22.3), which has a working example of such
code.

> If you can and want answer, send me it as email to 4pisecny AT sparc DOT fpv DOT umb DOT sk

Please set up your mailer so that it has this address in the Reply-to 
header.

- Raw text -


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