Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Waiting for 3 (or 3.3) microseconds? 286 and up. (Developers)

posted by Japheth Homepage, Germany (South), 10.12.2012, 11:42

> What is a good way to guarantee a wait for a few microseconds? Can I use
> the same code on a 286 while still guaranteeing long enough delay on a
> 64bit cpu who happens to be talking to a real sound blaster in an ISA slot?
> Those motherboards exists [even though I don't have one, nor a real sound
> blaster].

One may query Keyboard controller port B ( cpu port 61h ). Bit 4 ("refresh request") toggles at a frequency of 1.193 MHz. It's often used for PC-speaker sound timings.

---
MS-DOS forever!

 

Complete thread:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum