JMarlin / nesii

0 stars 0 forks source link

[NES II] Add disk read timeout to bios #14

Closed JMarlin closed 2 months ago

JMarlin commented 2 months ago

Description

As a user of the NES ][ it would be nice if the system were able to time out and drop to the monitor if there's no disk inserted

Acceptance criteria

JMarlin commented 2 months ago

Getting kind of frustrated with this, so here's the idea du jour: Forget the motor-on wait. Everywhere. Just base everything on retrying sector read

JMarlin commented 2 months ago

Wrestling with flaky-ish hardware, but this looks like it's working properly now. Got Mario to run with the current code which also handles the no-disk-at-boot condition properly, so it's functional.

I may want to add more retries to the binload routine in the future, though. And definitely will want to add proper failure handling to all of the fs and shell routines in the future.