Drive Specifier in esxDOS

Do you live and breathe hexadecimal? Do you like speaking to hardware directly?

Moderator: Programming Moderators

User avatar
breakintoprogram
Posts: 7
Joined: Thu May 06, 2021 8:21 am

Drive Specifier in esxDOS

Postby breakintoprogram » Mon May 24, 2021 7:54 pm

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.

User avatar
breakintoprogram
Posts: 7
Joined: Thu May 06, 2021 8:21 am

Re: Drive Specifier in esxDOS

Postby breakintoprogram » Tue May 25, 2021 8:55 am

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)


Who is online

Users browsing this forum: No registered users and 3 guests