|Re: [hatari-devel] The WD1770 "Motor on" line|
[ Thread Index |
| More lists.tuxfamily.org/hatari-devel Archives
On 25 Nov 2014 at 0:16, Nicolas Pomarède wrote:
> this was already reported by vincent and discussed in the thread "LED
> with empty floppy drives" and my answer from 9/6/2014.
> Basically, Hatari's behaviour is the same as my STF and STE when no
> floppy are inserted in both drives.
> Note that your reading of the doc is incomplete : the led/motor will
> indeed turn off after the WD1772 counts 10 revolution. But the problem
> is that the WD1772 can't count revolution unless a floppy is inserted in
> the drive :(
> So, this means a selected drive where you sent a command (restore, seek,
> ...) will never turns off. You can wait several hours, it will keep on
> spinning ; it's only if you insert a floppy that the drive will complete
> its command and clear motor after 2 sec.
> It's wrong at Emutos level to assume the motor bit will eventually be
> cleared ; if there's not floppy it will stay on forever. So, you need to
> have an extra timeout > 10 revolution = 2 sec to unselect the drive in
> all cases, even if motor bit was not cleared.
> This "worked" in Hatari 1.7.0 because it was not correctly emulated :)
OK, thanks and sorry to bother you again. That's what happens when you try to
work on an old bug :-(. I need to add some extra code to the VBL handler.