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

Fix refresh counter #13

Merged
merged 3 commits into from
Apr 20, 2024
Merged

Fix refresh counter #13

merged 3 commits into from
Apr 20, 2024

Conversation

koron
Copy link
Contributor

@koron koron commented Apr 20, 2024

Make the refresh counter (R register) behave like a real Z80.

  • Increment R when fetch an opcode in M1 cycle
  • Fix HALT behavior
    • Increment R
    • Keep the program counter PC
  • Stabilization of performance measurement with zexdoc

References:

@koron koron marked this pull request as ready for review April 20, 2024 12:53
@koron koron merged commit 133020c into main Apr 20, 2024
3 checks passed
@koron koron deleted the fix-refresh-counter branch April 20, 2024 12:53
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

Successfully merging this pull request may close these issues.

1 participant