Famicom Disk System emulation

Discuss emulation of the Nintendo Entertainment System and Famicom.
paulb_nl
Posts: 54
Joined: Fri Nov 18, 2016 7:57 am

Re: Famicom Disk System emulation

Post by paulb_nl »

If it is resetting to all 1s and reloading to 3245 after 128 refreshes then it is impossible that it is incrementing instead of decrementing.

We know because of your tests that the behavior is that it counts 3246 cycles to trigger an IRQ after 128 refreshes so either SCSR is reading the bits wrong or the counter is decrementing.
User avatar
TakuikaNinja
Posts: 429
Joined: Mon Jan 09, 2023 6:42 pm
Location: New Zealand

Re: Famicom Disk System emulation

Post by TakuikaNinja »

I inserted 2 NOPs after the re-enable write and it does reduce the measured count by the expected amount. I'm inclined to agree that it can't be incrementing from the all 1s state, otherwise I would've gotten an IRQ immediately after re-enabling the watchdog.
You do not have the required permissions to view the files attached to this post.