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

Writing to VIA IFR doesn't clear the set bits #441

Open
Yazwh0 opened this issue Oct 24, 2022 · 0 comments
Open

Writing to VIA IFR doesn't clear the set bits #441

Yazwh0 opened this issue Oct 24, 2022 · 0 comments

Comments

@Yazwh0
Copy link

Yazwh0 commented Oct 24, 2022

When writing to IFR, it should clear any bits that are set in the write. (bar bit 7, which is preserved)
image

This disables VIA interrupts, and then should clear the bits.

10 poke $9f0e, $7f
20 a=peek($9f0d)
30 print a
40 poke $9f0d, a
50 print peek($9f0d)

expected:
image

emulator:
image

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

1 participant