Closed ivanizag closed 1 month ago
Oh. The Internet Archive is disabled again.
Yep, it's still down... when you say that the system will wait forever, this is only when drive B: is accessed, right? If so, then I think this is fine. It would be nice to add timeout support but without an actual system timer the only way to do it would be via counting, which sounds like a miserable experience. It would have to be done on every busy wait for the disk shift registers, of which there are many.
Right, only when B: is accessed. Or A:, but only if the disk is removed after boot.
The only way would be indeed counting. I think that only counting on read_header
would be enough. The rest of the usages always work for a set number of bytes. On read_header
, looking for the prologue could finish after reading the close to 8000 bytes that could be stored in a track.
Okay, that's cool. Merging. Thanks very much!
Adds two drives on slot 6 for the Apple II. I just needed to update
bios_SELDSK
. I also added a second disk to the build.Tested on the emulators Virtual ][, MAME and my own. I don't have a real machine setup for testing.
A drawback of this second drive support is that the system will be waiting forever on access to B: for a disk to be inserted. That was quite common on the Apple II, but running on an emulator with no disks sounds, the first experience for users testing cpm65 could be bad. That may be reason enough for not merging the change.
The wait happens on
read_header
searching for a sector prologue. I dare not touch all that time sensitive code for the Disk II.