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

upd933: rework irq to use a timer #11750

Merged
merged 3 commits into from Nov 18, 2023
Merged

upd933: rework irq to use a timer #11750

merged 3 commits into from Nov 18, 2023

Conversation

devinacker
Copy link
Contributor

From my still-in-progress CZ-1 driver, this mostly just changes interrupt generation to ensure accurate timing. Also better handling of interrupt priority (probably) and a couple of other miscellaneous things for the aforementioned driver.

Comment on lines 200 to 204
if (m_irq_state != (m_cs & m_id & m_irq_pending))
{
m_irq_state ^= 1;
m_irq_cb(m_irq_state);
}
Copy link
Member

Choose a reason for hiding this comment

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

If someone puts an unexpected value into m_irq_state (e.g. with the debugger or a Lua script, since they can access stuff registered for save states) this is going to behave really strangely.

@cuavas cuavas merged commit a801555 into mamedev:master Nov 18, 2023
5 checks passed
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