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

cpu/hcd62121: Implement missing mov instructions and timer wait #12099

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

qufb
Copy link
Contributor

@qufb qufb commented Mar 3, 2024

These changes bring emulation closer to the intended speed, allowing screens in CFX9850 models to be interacted without the system turning off immediately (instead of the intended 6 minutes of idle time).

George Stagg identified some missing instructions and how timers were set. In particular, that instruction 0xB3 sets the timeout for the next sleep operation at instruction 0xFE.

Concrete values for timeouts are based on test ROMs I wrote to iterate over almost all possible parameters, using a logic analyzer to get approximate durations for each timeout. If anyone is interested in checking out these timings, you can open these traces in DSView, using the sigrok decoder found on the same repo.

Co-authored-by: George Stagg <georgestagg@gmail.com>
@rb6502 rb6502 merged commit c13a580 into mamedev:master Mar 4, 2024
5 checks passed
stonedDiscord pushed a commit to stonedDiscord/mame that referenced this pull request Apr 8, 2024
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.

None yet

2 participants