🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1590

Re: VGA

#1590
From: Bill Moeur
Date: Wed, 18 Nov 1992 14:48
26 lines
1192 bytes
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
Technical Details
Message-ID: <-hlqw1@lynx.unm.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!lynx!chtm.eece.unm.edu!moeur
References: <8715@dirac.physics.purdue.edu> <1992Nov14.142027.3539W@skylark.edb.tih.no> <1992Nov17.121643.12000@bsu-ucs>

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer
Path: arc1-ca.pugleaf.net!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