At 05:13 AM 7/10/99 +0200, you wrote:

>What's the best system-friendly way to stop floppy disk (or whatever
>spinning device) motor before taking over system?

Generally, calling #FD9F 256 times works very well.

If for some reason you want to stop drives directly, use these DiskROM
routines:

#401F: Stop drive served by this DiskROM.
I'm not sure whether this stops a specific drive or all drives connected to
the called DiskROM. On the 8250, it stops all drives. On some machines,
where the motors stops automatically, #401F is simply a "RET".

#4029: Stop all drives.
Be careful using this, it may stop drives you don't want to stop. See other
mail.

You might wonder: How do you know which drive corresponds to which DiskROM?
There is a table for that: at #FB21 there are 4 entries of 2 bytes each.
The first byte is the number of drives connected to a DiskROM, the second
byte is the slot ID of the DiskROM. The DiskROMs are ordered in the same
order as the drive letters. On DOS1 anyway, I don't know how DOS2's
"ASSIGN" is implemented.

>Bearing in mind that data may have been loaded from another device (HD,
>ZIP, CD-ROM, RAMDISK...) which may or may not need to stop its motor when
>not in use for a long time.

The safest is to check the Drive Parameter Block before stopping a drive's
motor. Floppy media ID is #F8 or #F9 (others as well, but those are not
used on MSX), HD is #F0.

>Once more, Lady System Killer strikes back.

I bet the Beatles would have called you Lady System Destroyer... ;)

>A dishwasher has no BDOS nor GUI &'s also a home appliance 8;9

Not yet...
Using Back Orifice 2010, hackers will be able to remotely turn on and off
your dishwasher.

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/)
****

Reply via email to