Jump to content

  • Log In with Google      Sign In   
  • Create Account


The DOS Vsync


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 Sponge99   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 February 2000 - 06:41 PM

I have finally figured out how to check the DOS Vsync (for mode13h) so that there is no flicker. However, I think it is a tad slow, and would like some ASM code for it. I''m using DOS, w/ a Turbo C++ 3.0 from Borland. Thanks -- David Rogers.

Sponsor:

#2 Cloxs   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 February 2000 - 11:41 AM

I can''t remember exactly how (it''s been almost a year since I did a graphics routine in asm). But you contact the video port, and request a VSYNC. If you search the net, looking for vidcaps.zip or something like that, you should find a doc that explains it. Or, goto www.programmerheaven.com.

#3 Nick Murphy   Members   -  Reputation: 1604

Like
Likes
Like

Posted 28 February 2000 - 11:53 AM

Hopefully this will be of help:


void wait_for_retrace(void)
{
_DX = 0x03DA;

l1: asm {
in al, dx
and al, 0x08
jnz l1
}

l2: asm {
in al, dx
and al, 0x08
jz l2
}
}



#4 Sponge99   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 February 2000 - 05:49 PM

Thanks for your help. The ASM version is alot smoother than the C version. I finally got good graphics going, so a game is SOOOO close!

-David [sponge99]

#5 farmersckn   Members   -  Reputation: 122

Like
Likes
Like

Posted 02 March 2000 - 03:05 PM

hey, if you could, i''d like to see the game when you''re done, cuz im using turbo c++ 3.0 as well, and i''m doing almost exactly what you are. anyway, even if your not done with it, if you wanna email me what you have so far that''d be great. if not, though, i understand... thanks. o, btw, if you need anymore routines for 13h, i have a few laying around...




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS