home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: rec.games.programmer
- Path: sparky!uunet!spool.mu.edu!umn.edu!lynx!chtm.eece.unm.edu!moeur
- From: moeur@chtm.eece.unm.edu (Bill Moeur)
- Subject: Re: VGA
- Message-ID: <-hlqw1@lynx.unm.edu>
- Date: Wed, 18 Nov 92 14:48:13 GMT
- Organization: University of New Mexico, Albuquerque
- References: <8715@dirac.physics.purdue.edu> <1992Nov14.142027.3539W@skylark.edb.tih.no> <1992Nov17.121643.12000@bsu-ucs>
- Lines: 27
-
- In article <1992Nov17.121643.12000@bsu-ucs> 00rbspelman@leo.bsuvc.bsu.edu writes:
- >In article <1992Nov14.142027.3539W@skylark.edb.tih.no>, thomash@edb.tih.no (Thomas Hagen,o91b) writes:
- >> In article <8715@dirac.physics.purdue.edu>, saxena@bohr.physics.purdue.edu
- >> (Virendra K. Saxena) writes:
- >>
- >>> Ok, I've got the code for placing a bitmap on screen in mode 13h.
- >>> How do I wait for vertical retrace?
- >>
- >> In Borland C, you could do the following:
- >>
- >> #include <dos.h>
- >> ....
- >> void wait_for_retrace(void){
- >> while (!(inportb(0x3da)&8));
- >> }
- >>
- >>
- >> thomash@edb.tih.no
- >>
- >>
- > Can the same thing be done with QuickBasic or VisualBasic?
- >
-
- Yes, in QuickBasic:
-
- while (inp(&h3da) and 8) = 0 : wend
-
-