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

1Mhz clock stretching does not happen correctly for some instructions. #184

Open
SteveFosdick opened this issue Jan 2, 2023 · 0 comments

Comments

@SteveFosdick
Copy link
Collaborator

SteveFosdick commented Jan 2, 2023

See: https://stardot.org.uk/forums/viewtopic.php?p=379891#p379891 and https://github.com/dp111/6502Timing

The clock stretching to 1Mhz sometimes doesn't happen because the phase of the 2Mhz clock is out of step with what would happen on real hardware because of the point at which polltime() is called.

The solution is to distribute calls to polltime() within the execution of the instruction, possibly by including the call in readmem/writemem.

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

No branches or pull requests

1 participant