commanderx16 / x16-emulator

Emulator for the Commander X16 8-bit computer
384 stars 61 forks source link

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

Open Yazwh0 opened 1 year ago

Yazwh0 commented 1 year ago

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