At 07:27 AM 7/10/99 -0400, you wrote:
>xor a
>ld ($f1c1),a
This will turn off the floppy drive on a standard system, but I'm not sure
it will work on any system. The address #F1C1 is in a data structure that
doesn't have a fixed address, although it seems to be assigned the same
address on many machines.
I once wrote a routine to turn off any drive. It ended up stopping the
motor of Henrik Gilvad's hard disk. The problem is that the interface
didn't turn the motor back on so it crashed. Only after a reboot everything
worked again.
The strange thing is that I actually tested the routine on Yobi's harddisk,
which didn't stop. But the interfaces were probably different, Yobi had a
BERT and Henrik probably a Novaxis.
>Every time a disk-operation is done, the address $f1c1 is filled with
>255 because of the fact if it's not done, and e.g. the end of a file
>is not reached, the drive keeps spinning, so when there is read again
>the drive doesn't have to search the right sector again.. When this
>address is 0 the disk-drive light is turned off when the next interrupt
>occurs..
I thought "0" means that the drive was already turned off and "1" means it
will be turned off next interrupt (when the counter reaches zero).
Bye,
Maarten
****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****