Date: Wed, 2 Dec 1998 10:52:45 +0200 (IST) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.