2 ms·
The original IBM PC lacked an RTC, clones (as with everything else) had occasional portability glitches with them, and this was a decade before the TSC arrived.
by ajross 8y ago
The original IBM PC lacked an RTC, clones (as with everything else) had occasional portability glitches with them, and this was a decade before the TSC arrived. If you wanted a game to have a delay loop, you counted instruction cycles. If you wanted those delays to be portable, you manually detected the CPU and ran a pre-calibrated custom loop.
Yeah, that seems hard to me.
- pjc50 8y agoThe "correct" way to do this was the 1/18th sec timer interrupt, even when the RTC worked it didn't have sub-second resolution. http://www.pldworld.com/_hdl/1/VHDL_courses/www.ee.duke.edu/Research/VHDL_tutorial/webtracer/node13.html http://www.pldworld.com/_hdl/1/VHDL_courses/www.ee.duke.edu/...
- ajross 8y agoI thought the PIT was slaved to the bus clock on early systems and wasn't real time, no? Might be wrong.