Article View: comp.os.msdos.programmer
Article #608Re: Detecting VGA retrace! HELP!
From: Dave Kirsch
Date: Wed, 08 Apr 1992 02:19
Date: Wed, 08 Apr 1992 02:19
22 lines
1342 bytes
1342 bytes
In article <1992Apr8.105623.7301@waikato.ac.nz>, singlis@waikato.ac.nz writes: > Can anyone tell me which interrupt/mem location I can check to see if the > raster is in a retrace, this is so I can perform "nice" palette adjustments > without a lot of flicker... If you're using C, this handy macro will do it for you: #define vblstat() (inp(0x3DA)&8) /* use for MCGA/VGA only! */ And a simple 'if (vblstat())' will work in your code. Basically, you have to read the MCGA/VGA port 0x3da and see if bit 3 is set. /// Dave. -- -------------------------------------------------------------------------- /// Dave 'Zoid' Kirsch | Vancouver, BC |Internet: MIND LINK! Communications Corp.| CANADA | zoid@mindlink.bc.ca -------------------------------------------------------------------------- Life is a wonderfully strange game. The coincidental and the planned all merging together into this mass of events which bewilders us. It can only get better.
Technical Details
Message-ID:
<11308@mindlink.bc.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!rsoft!mindlink!a563Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!rsoft!mindlink!a563 From: Zoid@mindlink.bc.ca (Dave Kirsch) Newsgroups: comp.os.msdos.programmer Subject: Re: Detecting VGA retrace! HELP! Message-ID: <11308@mindlink.bc.ca> Date: 8 Apr 92 02:19:45 GMT Article-I.D.: mindlink.11308 Organization: MIND LINK! - British Columbia, Canada Lines: 22