home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / rec / games / programm / 4732 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.1 KB  |  38 lines

  1. Newsgroups: rec.games.programmer
  2. Path: sparky!uunet!spool.mu.edu!umn.edu!lynx!chtm.eece.unm.edu!moeur
  3. From: moeur@chtm.eece.unm.edu (Bill Moeur)
  4. Subject: Re: VGA
  5. Message-ID: <-hlqw1@lynx.unm.edu>
  6. Date: Wed, 18 Nov 92 14:48:13 GMT
  7. Organization: University of New Mexico, Albuquerque
  8. References: <8715@dirac.physics.purdue.edu> <1992Nov14.142027.3539W@skylark.edb.tih.no> <1992Nov17.121643.12000@bsu-ucs>
  9. Lines: 27
  10.  
  11. In article <1992Nov17.121643.12000@bsu-ucs> 00rbspelman@leo.bsuvc.bsu.edu writes:
  12. >In article <1992Nov14.142027.3539W@skylark.edb.tih.no>, thomash@edb.tih.no (Thomas Hagen,o91b) writes:
  13. >> In article <8715@dirac.physics.purdue.edu>, saxena@bohr.physics.purdue.edu 
  14. >>   (Virendra K. Saxena) writes:
  15. >> 
  16. >>>    Ok, I've got the code for placing a bitmap on screen in mode 13h. 
  17. >>>    How do I wait for vertical retrace?
  18. >> 
  19. >> In Borland C, you could do the following:
  20. >> 
  21. >>   #include <dos.h>
  22. >>   ....
  23. >>   void wait_for_retrace(void){
  24. >>     while (!(inportb(0x3da)&8));
  25. >>   }
  26. >> 
  27. >>  
  28. >> thomash@edb.tih.no
  29. >> 
  30. >>     
  31. >    Can the same thing be done with QuickBasic or VisualBasic?
  32. >
  33.  
  34. Yes, in QuickBasic:
  35.  
  36.      while (inp(&h3da) and 8) = 0 : wend
  37.  
  38.