[Coco] Sdc question

Darren A mechacoco at gmail.com
Tue May 26 10:47:23 EDT 2015


On Tue, May 26, 2015 at 7:24 AM, Barry Nelson wrote:

>
> 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


More information about the Coco mailing list