View Single Post
Old 27 October 2018, 12:09   #13
Keir
Registered User
 
Join Date: May 2011
Location: Cambridge
Posts: 682
Quote:
Originally Posted by StingRay View Post
For bootblock use I think there only need to be CloseDevice() calls added, the rest should be fine.
That's really not so bad then, and I agree that seems reasonable since no I/O gets issued on the IOReq.

I also like ross's approach but would probably do direct hw access and ignore trackdisk rather than grubbing in its device structure. It would be pretty simple to find valid drives by:
* All motors off
* DF0: is valid if: select unit 0 and check CIAAPRA_CHNG=1
* DFn: (n!=0) is valid if: select unit n and check CIAAPRA_RDY=0, CIAAPRA_CHNG=1.

Then check for disk tag on the filtered set of valid DFn.

So that's two nice methods
Keir is offline  
 
Page generated in 0.04437 seconds with 11 queries