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

Emulated CPU speed should be 1023000 Hz #91

Open
st3fan opened this issue Dec 25, 2016 · 1 comment
Open

Emulated CPU speed should be 1023000 Hz #91

st3fan opened this issue Dec 25, 2016 · 1 comment

Comments

@st3fan
Copy link
Owner

st3fan commented Dec 25, 2016

Emulated CPU speed should be 1023000 Hz

@paulhagstrom
Copy link

If you want to be very precise, it's more complicated than this. It's described in gory detail in Sather's "Understanding the Apple II" book, chapter 3. The main tricky thing is that every 65th cycle is a little bit longer, in order to make the video work properly. So, according to Sather at least, it's 1.0227MHz for 64/65 cycles, and 0.8949MHz for 1/65 cycles, overall leading to 1.0205MHz. I've seen 1.023 before too, and I'm not sure why it's not 1.021 with rounding. But it is, in any event, not fully constant. This can mess up timing-sensitive disk routines, since the disk keeps spinning at the same speed even if the 6502 clock has slowed down for a moment. The situations it matters in are very few in number, of course.

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

2 participants