Article View: rec.games.programmer
Article #417Re: Vertical Retrace interrupt?
From: Stokes Kevin
Date: Wed, 05 Aug 1992 15:02
Date: Wed, 05 Aug 1992 15:02
27 lines
1761 bytes
1761 bytes
In article <1992Aug3.210504.57823@cc.usu.edu> sl8nl@cc.usu.edu writes:
> detect the retrace with an interrupt, rather than polling for it.
>
>>Question: If you set the retrace up as an interrupt (possible...by modifying
>>the timer interrupt to run at 60 times a second), wouldn't you still have
I think the original posting was about the user of the VGA Card's hardware
interrupt, not the timer chip. The timer chip wouldn't stay in phase with the
video retrace, and therefore wouldn't help.
The VGA card does have an interrupt line which can be used for this, but I
wouldn't use it if you plan to distribute the program to others. Since the
PC stupidly has so few interrupt lines, this line get used for all sorts of
other things. Infact this video int is always disabled normally, and
I've never heard of a program that uses it. I have a feeling that this would
be the kind of thing that would fail on about 1/2 the people's computers.
Anyone else out there have any experience in this?
I believe Micheal Abrash's book covers the use of the interrupt line,
certainly Ferraro's book would.
-Kevin
--
Kevin Stokes
Duke University Dept. of Physics kds@phy.duke.edu
Durham, N.C. 27706
Technical Details
Message-ID:
<4284@news.duke.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!concert!duke!news.duke.edu!phy.duke.edu!kdsReferences:
<1992Aug3.233204.16778@cs.aukuni.ac.nz> <1992Aug3.210504.57823@cc.usu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!concert!duke!news.duke.edu!phy.duke.edu!kds From: kds@phy.duke.edu (Stokes Kevin) Newsgroups: rec.games.programmer Subject: Re: Vertical Retrace interrupt? Message-ID: <4284@news.duke.edu> Date: 5 Aug 92 15:02:31 GMT References: <1992Aug3.233204.16778@cs.aukuni.ac.nz> <1992Aug3.210504.57823@cc.usu.edu> Sender: news@news.duke.edu Organization: Duke University Physics Dept.; Durham, N.C. Lines: 27 Nntp-Posting-Host: physics.phy.duke.edu