Z88 Developers' Notes
Contents   Contents of System Calls

DC_Nq, handle Director/CLI enquiries

RST 20H, DEFW $160C

IN:
B = 0, always
C = reason code
DQ_Dev ($00), get default device
DQ_Dir ($03), get default directory
DQ_Fnm ($06), get filename match string
DQ_Dmh ($09), get the director memory handle
DQ_Inp ($0C), get std. input handle
DQ_Out ($1F), get std. output handle
DQ_Prt ($12), get printer stream handle
DQ_Tin ($15), get input-T handle
DQ_Tot ($18), get output-T handle
DQ_Tpr ($1B), get printer-T handle
DQ_Chn ($1E), reset serial port and get NQ_Chn

OUT:

Fc = 0,   success
  result in IX for DQ_Dmh, DQ_Inp, DQ_Out, DQ_Prt, DQ_Tin, DQ_Tot, DQ_Tpr, DQ_Chn
  result in BHL for DQ_Dev, DQ_Dir, DQ_Fnm
Fc = 1,   A = RC_UNK ($03)

Notes:

Internal operating system usage.
DC_NQ is a subcall of OS_NQ, use OS_NQ instead.
Dev, Dir, Fnm get the attribute from Filer if it is open, otherwise from Index.

Bugs: -

Related calls:

DC_Sp, DC specify
OS_Sp, specify
OS_NQ, enquire