Page 1 of 1

Drive Specifier in esxDOS

Posted: Mon May 24, 2021 7:54 pm
by breakintoprogram
Hopefully this'll be a quick one for someone out there.
What is the drive specifier in esxDOS?
For example:

Code: Select all

; ***************************************************************************
; * F_OPENDIR ($a3) *
; ***************************************************************************
; Open directory.
; Entry:
; A=drive specifier (overridden if filespec includes a drive)
; IX=directory, null-terminated
I've tried the obvious, sticking 'C' into A, but that doesn't work.
It seems to map C if A is in the range 16-31.
I know that you can ignore it by prefixing the filepath, i.e. "C:/", but need closure on this.
Can't find any reference to what this is online, or in the nextzxos_api document.

Re: Drive Specifier in esxDOS

Posted: Tue May 25, 2021 8:55 am
by breakintoprogram
Think I've found the solution in another section of the documentation - seems to work:

Code: Select all

; A='*' use the default drive
; A='$' use the system drive (C:, where the NEXTZXOS and BIN dirs are)
; bits 7..3=drive letter (0=A...15=P)
; bits 2..0=ignored (use 1 to ensure A<>0)