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

Finishing on interrupt mode 0 ? #6

Open
fawtytoo opened this issue Feb 13, 2024 · 1 comment
Open

Finishing on interrupt mode 0 ? #6

fawtytoo opened this issue Feb 13, 2024 · 1 comment

Comments

@fawtytoo
Copy link

Once the tests are finished, my emulator was not re-enabling interrupts, or so I thought. After much head scratching, I realised I wasn't handling IM 0 at all, but then the Spectrum doesn't use it anyway. If I handle IM 0 the same as IM 1, interrupts are working correctly again once the tests are finished.
Is it possible your tests are finishing on IM 0 instead of IM 1? If so (or either way), which one of us is wrong?

@raxoft
Copy link
Owner

raxoft commented Feb 20, 2024

Yeah, I guess you are right, it ends in IM 0. This is an oversight. In practice it doesn't matter much, as in the end they behave the same (as long as the bus reads 0xFF at interrupt time, which is the case of real Sinclair machines and thus also the emulators). I will remember to fix it if I ever do a newer release, but at the moment it doesn't bother me much.

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

2 participants