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

heathzenith/h89.cpp: Add wait states for mms 77316 fdc #12502

Merged
merged 2 commits into from
Jun 23, 2024

Conversation

mgarlanger
Copy link
Contributor

@mgarlanger mgarlanger commented Jun 22, 2024

The 77316 FDC requires wait states to work with 8" DD disks, since the 2 MHz Z80 could not handle the data rate of 8" DD disks. The hardware on the card will hold the CPU in wait states until the DRQ state is raised.

Reading and writing is now working correctly with the latest comit.

@mgarlanger mgarlanger marked this pull request as ready for review June 22, 2024 22:53
@rb6502 rb6502 merged commit d0b00a5 into mamedev:master Jun 23, 2024
5 checks passed
Comment on lines -136 to 145
if (burstMode())
if (burst_mode_r() && !m_drq && !m_irq)
{
// TODO add wait states in burst mode, currently blocked on Z80 properly supporting wait states
LOGBURST("%s: burst_mode\n", FUNCNAME);
LOGBURST("%s: burst_mode setting wait state\n", FUNCNAME);
m_wait_cb(ASSERT_LINE);

return(0x00);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect this will wreak havoc with the debugger as it’s a read with side effects.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that. I'll try to get a PR open tonight to address it.

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.

3 participants