Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The OS_Sp call is a companion to the OS_Nq and is used to set system parameters, notably the Panel and the PrinterEd settings. A call is made by loading register pair BC with a reason code and the other registers with values specific to that reason code. Register changes and output specifications are different for each reason code. The OS_Sp interface call is as follows:

 


Code Block
languagenone
titleOS_Sp, specify
RST 20H, DEFB $69

IN:
            BC = reason code
            HL = pointer to data
            A = length (size) of data
 
OUT, if call succeeded:
            Fc = 0
 
OUT, if call failed:
            Fc = 1
            A = return code:
                        RC_BAD ($04), incorrect reason code or parameter
                        RC_UNK ($03), unknown request

...

Symbol (reason code)    Size        Meaning
PA_Txb ($8016)          2 (or 1)    Transmit baud rate - binary
PA_Rxb ($8017)          2 (or 1)    Receive baud rate - binary
PA_Xon ($8018)          1           Xon/Xoff 'Y' or 'N'
PA_Par ($8019)          1           Parity 'O', 'E', 'M', 'S' or 'N'

Printer Editor values (highlights & translation tables)

...