Disc Motor Spinning
Posted: Sun Apr 20, 2014 1:07 pm
Hello,
When, from a ML program, you send a command to the D.O.S. like DIR, LOAD, SAVE or anything that turns the motor on, it seems that you have to wait until the light is off to disable interrupts, in the contrary case, it is said that the disc could be spinning until next time you access it, or forever if you don't.
Compusense tells us to poll &H605 until it reaches zero value.
This works, but wasting time, does anybody know if there is any possibility of forcing the disk to stop without losing data if you were writing?
Maybe just being able to reduce the time it requires to stop the motor would be enough.
thanks
pere
When, from a ML program, you send a command to the D.O.S. like DIR, LOAD, SAVE or anything that turns the motor on, it seems that you have to wait until the light is off to disable interrupts, in the contrary case, it is said that the disc could be spinning until next time you access it, or forever if you don't.
Compusense tells us to poll &H605 until it reaches zero value.
This works, but wasting time, does anybody know if there is any possibility of forcing the disk to stop without losing data if you were writing?
Maybe just being able to reduce the time it requires to stop the motor would be enough.
thanks
pere