www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/02/06/21:58:02

To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Replacing timer interrupt under DGJPP
Reply-To: dmb AT ai DOT mit DOT edu
Date: Sat, 06 Feb 93 21:07:18 -0500
From: David Baggett <dmb AT case DOT ai DOT mit DOT edu>

Is it possible to hook a C routine into the timer interrupt?  What I'm
really trying to do is count vertical retraces without busy-waiting,
but since not all VGA cards support vertical retrace interrupts I have
to fake it with the timer.  The problem is that I have *no idea* how to
make a C routine get called every timer tick from within a protected
mode program.

Also, is there documentation anywhere on all the 386 GAS conventions?
I keep seeing things like ".386p" and ".286c" that I'd really like to
know how to use properly.  (I can kinda guess what those two mean, but
there are surely other useful pseudo-ops.)

Any help will be greatly appreciated -- I'm stumped!

Dave

- Raw text -


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