First thing about accessing directly EXDOS: ask where it is?
For this function the EXDOS have a special EXOS command, named "EXDOS",0FDh
This is return the FISH RAM area address at DE, it is valid in System Segment (FFh) at Page 2.
In B returned the EXDOS version as BCD number for example 13h= version 1.3.
At the FISH RAM (IY-5EH) are the EXDOS ROM segment number. (This is the direct access of EXOS variable 64, named ROM_EXDOS)
When you want to direct access EXDOS, at the start store this important values:
LD DE,EXDFD
EXOS 26
JP NZ,NO_EXDOS_ERROR
LD (FISHIY),DE
LD A,B
LD (EXDVER),A
PUSH DE
POP IY
LD A,255
OUT (0B2h),A
LD A,(IY-5Eh)
LD (EXDROM),A
EXDFD DB 6,"EXDOS",0FDH