www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/01/28/06:57:54

To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: how to set up a timer interrupt catcher
Date: Thu, 28 Jan 93 12:05:50 +0100
From: Marcel Beelen <mbee AT oce DOT nl>


Hello all,

I am trying to set up a timer interrupt catcher by changing the 0x70
interrupt vector. But everything I try results in a hangup.

I can read the old vector, which is f000:ff53, but if I replace this vector
by my own routine, which ends with an asm("iret"), the system hangs and should
be turned off and on again. It may (or may not) have something to do with
segment mapping, which I know virtually nothing about.

I tried to wade through the faq, docs, sources and examples, but could
not find anything to help me along.

Can anyone provide me with a working example of how to set up such a thing,
or even better with a working DJGPP-version of the Unix setitimer() call?

Thanks,
Rob Hegt


      ###########################################################
      #  This note does not necessarily represent the position  #
      #     of Oce-Nederland B.V. Therefore no liability or     #
      #      responsibility for whatever will be accepted.      #
      ###########################################################

- Raw text -


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