[Coco] Sdc question

Barry Nelson barry.nelson at amobiledevice.com
Tue May 26 16:20:12 EDT 2015


>> Can anyone help with the issue I have opening the device? Will I have to
>> talk to the hardware directly?
>
> Opening /sd0@ for reading should work.  Tim Lindner's latest version of
> SDIR uses the following code to open the device:
> 
> sdcPathName
>     fcc    ./sd0 at .
>     fcb    C$CR
>
> * open path to driver
> * uses A, X
> open_path_to_driver
>     leax   sdcPathName,pc
>     lda    READ.+PREAD.     open for reading
>     os9    I$Open
>     lbcs   noDriverError    Fail if not opened
>     sta    pathnumber,u
>     rts
>	
> - Darren

That only works if there is a "disk" inserted. If there is no media inserted, then that yields an error 246.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5282 bytes
Desc: not available
URL: <https://pairlist5.pair.net/pipermail/coco/attachments/20150526/4257894b/attachment.bin>


More information about the Coco mailing list