Re: [cc65] Uniform mass storage device discovery and file locations

From: <silverdr1wfmh.org.pl>
Date: 2012-08-18 01:17:38
-- 
Sent from mobile phone (so please have understanding).

On 17 sie 2012, at 18:00, Oliver Schmidt <ol.sc@web.de> wrote:

> Hi,
> 
>>>> b) Check if a (formatted, usable) disk is in the devie.
> 
> As mention this would be performed on a call to rootdir().
> 
> My finding so far is that it would be appropriate to open the cmd
> channel and and send an "I" (for Initialize) to the device. Does that
> make sense?

It does. But - of course - the status has to be read back and parsed. 00 returned after "I" command denotes a working volume being "mounted".

P. S. Unless someone replies earlier, I would need a few days (travelling now) to check my stuff at home to answer the questions about status ($90) byte. My bet is that answer to both is "yes" but have to double check the reasons, which I sort of only recall now - so don't take them as true and correct. [*]

* - 1) to start afresh, 2) to allow particular bits to be affected without losing previous information from the other ones----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Aug 18 01:17:55 2012

This archive was generated by hypermail 2.1.8 : 2012-08-18 01:17:58 CEST