Mail Archives: djgpp/1993/02/06/21:58:02
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 -