Date : Sun, 28 Jun 2009 01:52:41 +0100
From : jgh@... (Jonathan Graham Harston)
Subject: *INFO (etc) on a Master
"Mark Haysman" wrote:
> > .ex :LDA #9:BNE PassToFSC
> > .info:LDA #10:BNE PassToFSC
> > .librun:LDA #11:BNE PassToFSC
> > .rename:LDA #12
> > .PassToFSC
> > JSR F2toXY :\ Convert (&F2),Y to XY
> > JMP (FSCV) :\ Hand on to FSC
>
> Works fine for *INFO, but it returned a Bad Command for *EX, as when passed
> to FSCV, (&F2) = &0D if the user just types *EX<CR>
If all that the *EX code does is jump to the *INFO code, then yes
you'll get an error, as '*INFO' is a bad command on most filing
systems. The syntax is:
*INFO <ambiguous filename>
*EX (<optional directory>)
For a DFS-like filing system, '*EX' translates to '*INFO *.*',
'*EX <dir>' translates to '*INFO <dir>.*'
You need code along the lines of:
.fsc9
JSR XYtoF2
LDA (&F2),Y
CMP #13:BNE ex_directory
LDX #fsc9_wild AND 255
LDY #fsc9_wild DIV 256
BNE fsc10
.fsc9_wild
EQUS "*.*":EQUB 13
--
J.G.Harston - jgh@... - mdfs.net/User/JGH
Our chief weapons are 'who', 'ps -aux', 'kill -9', and a fanatical
devotion to 'reboot -q'.