Date : Sat, 18 Nov 2006 00:13:00 +0000
From : jgh@... (Jonathan Graham Harston)
Subject: Some ADFS / WDC 1770 questions.
>Message-ID: <007401c704b7$d5a33e00$6402a8c0@...>
"BRAHMS" <dominic@...> wrote:
> conkers! I won't always have a "valid" drive zero, is there a way of setting
> the drive (or fooling adfs that you have) without *mounting?
That's what the following code usually manages to do:
> > ok%=TRUE:ON ERROR ok%=FALSE
If an error occurs, don't try again
> > IF ok% THEN fs%=FNfs:IF fs%<>8 THEN *FADFS
Find current fs, if not ADFS, select ADFS without mounting current
drive.
> > IF ok% THEN *MOUNT 0
Select drive 0 as current drive. If an error occurs, drive 0 will
remain as ADFS's current drive. Annoyingly, *MOUNT tries to read
data from the specified disk. Grrrr.... I ensures that HADFS only
ever tried to access a disk when you actually explicitly told it
to. *MOUNT <d> merely clears the CSD to the specified drive.
If there is no physical drive 0, eg, no hard drive and no floppy
in drive 0, then *MOUNT 0 will sit their waiting for Escape.
> > IF fs%<>8 THEN OSCLI "FX143,18,"+STR$fs%
If we weren't in ADFS beforehand, reselect the previous filing
system.
--
J.G.Harston - jgh@... - mdfs.net/User/JGH
Taxation is like dairy farming. You have to extract the maximum amount of
milk with the minimum amount of moo.