Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Content was repeated 3 times, kept version with OZ 5.0 additions

...

Code Block
titleRST 20H, DEFB $45$66
IN:
     BC = enquiry code
     ADEHLIX parameters

OUT, if call succeeded:
     Fc = 0
     Depends on BC and other arguments

Out, if call failed:
     Fc = 1
     A = return code:
          RC_BAD ($04), incorrect reason code or parameters
          RC_UNK ($03), unknown request

...

The list below shows which data that can be polled from OS_Nq.

In the description of each reason code which follow, only successful calls are considered. In some cases it is possible that other error codes will be returned. With luck this should be clear from the context. Details of these calls are specified in subsequent pages.

...

NQ_Mfs ($8900), read free space information (system use only)
NQ_Slt ($8903), read slot type information (system use only)
NQ_Mfp ($8906), get total of free RAM pages in slot (OZ 4.2 and newer)
NQ_Mup ($8909), get memory used in pool (OZ 5.0 and newer)
NQ_Mnt ($890C), fetch mount status (OZ 5.0 and newer)

Director and CLI

...

All the Panel and Printer Editor codes can be used to read values via OS_Nq in the following manner: 


Code Block
languagenone
IN:
     BC = PA_xxx
     A = number of bytes to read
     DE = buffer for bytes to be read
OUT:
     A = number of bytes actually read
 

SI_SFT calls OS_Nq in an undocumented way for reading Panel settings.

...

This call may fail if called from segment 2 (fixed since OZ 4.7).

Related calls

DC_Sp, DC specify
DC_Nq, DC enquire
OS_Sp, specify