Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8254 library: Figure out how to detect what mode the PIT is running in #29

Open
joncampbell123 opened this issue Oct 8, 2017 · 0 comments
Assignees

Comments

@joncampbell123
Copy link
Owner

Current code requires writing the PIT 0 counter to put it into a mode where the wait functions and counting/delay code can time properly, because DOSBox-X and most motherboards put it into a mode that counts down by 2 (throwing off our code).

What would be nice is if the 8254 library had a variable to track the PIT mode so that it can follow along if it knows the timer is in that PIT mode (count by 2) instead of requiring the host program to reprogram the PIT timer. It would also be nice if the 8254 library at probe time could automatically detect that PIT 0 is in this mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant