🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #414

Re: Vertical Retrace Interrupt (?)

#414
From: Peter SPHINX Cellik
Date: Wed, 05 Aug 1992 08:51
51 lines
2567 bytes
In article <QeTic5_00WB20fG3UV@andrew.cmu.edu>, cd2a+@andrew.cmu.edu (Court Demas) writes:
|> 
|> I've heard many conflicting things about using the Vertical Retrace Interrupt -
|> like that it can't be used with any IBM VGA's (some say just IBM's ISA VGA
|> card - does such a thing exist?).
|> 
|> I checked Sutty and Blair, and it has the following on pg 85/86:
|> 
|> Vertical Retrace End (Index 11h)
|> .
|> .
|> Besides determining the end of the vertical retrace, this register also
|> controls other functions that can be useful for some applications.
|> Bit Definitions:
|> ..
|> D5 - Enable Vertical Interrupt (0=enable)
|> ..
|> o D5: A zero in Enable Vertical Interrupt will cause an interrupt to be
|> generated to the processor on interrupt line IRQ2 with every vertical retrace.
|> This can be used as an accurate 60hz interrupt (for animation, for instance).
|> Once a vertical interrupt is generated, the interrupt is latched on until it is
|> acknowledged.  Writing a zero to D4 (Clear Vertical Interrupt) will
|> acknowledge the interrupt.
|> ..
|> It seems like this is available on EGA also.  I just don't understand how you
|> can write an interrupt driver when all you know is the IRQ number.  Before
|> I break out PC-Watch and try to locate this sucker, it would be cool if
|> somebody else could explain.
|> 
|> thanks..
|> 
|> 
|> -court

I think the IRQ2 generates interrupt 0xA or 0xC.  I have the info at home,
I will look it up tonight.  For the above info you gave, index 11h is on 
what controller?  Is it the misc or the graphics control?  Better yet what
is the port number?  0x3CE?  Just a guess.  I want to give this a try, again.
But I don't have the book that I tried it with last time.  If you give me
these numbers, I should be able to figure it out (I hope :-)).

Has anyone had any success yet?

        SPHINX


====================================================
=== Kill others only if you wish to be killed.   ===
===                                       SPHINX ===   
====================================================
Technical Details
Message-ID: <1992Aug5.095156@axion.bt.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!axion!pcellik
References: <QeTic5_00WB20fG3UV@andrew.cmu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!axion!pcellik
From: pcellik@axion.bt.co.uk (Peter SPHINX Cellik)
Newsgroups: rec.games.programmer
Subject: Re: Vertical Retrace Interrupt (?)
Message-ID: <1992Aug5.095156@axion.bt.co.uk>
Date: 5 Aug 92 08:51:56 GMT
References: <QeTic5_00WB20fG3UV@andrew.cmu.edu>
Sender: news@axion.bt.co.uk
Reply-To: pcellik@axion.bt.co.uk (Peter SPHINX Cellik)
Organization: British Telecom Research Labs
Lines: 51