OS_Sp, Specify
Register parameters
RST 20H, DEFB $69
IN:
IX = argument
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 Notes
Please refer to OS_Nq for other system resources that may be only be read.
Related calls
DC_Sp, DC specify
DC_Nq, DC enquire
OS_Nq, enquire
Reason codes
The following is the list of reason codes for manipulating the Panel and Printer Editor.
Codes marked with * are preserved by soft reset.
System codes
System codes below are preserved and re-installed after a soft reset.
Symbol (reason code) Size MeaningPA_Gfi ($8000) 0 Install changed settingsPA_Mct ($8001) * 1 Timeout in minutesPA_Rep ($8002) * 1 Repeat ratePA_Kcl ($8003) * 1 Keyclick 'Y' or 'N'PA_Snd ($8004) * 1 Sound 'Y' or 'N'PA_Bad ($8005) * 1 Default bad process size in KPA_Loc ($8006) * 1 Keyboard localization, identified by country letter (OZ 4.2 and newer) CL_US 'A' United states CL_FR 'F' France CL_DE 'G' Germany CL_UK 'U' England CL_DK 'D' Denmark CL_SE 'S' Sweden CL_IT 'I' Italy CL_SP 'P' Spain CL_JP 'J' Japan CL_IS 'C' Iceland CL_NO 'N' Norway CL_CH 'W' Chweiss CL_TR 'T' Turkey CL_FI 'L' FinlandPA_Psw ($8007) * 8 (max) Lockup password (OZ 5.0 and newer)
Application values
Symbol (reason code) Size MeaningPA_Iov ($8010) 1 Insert/Overtype 'I' or 'O'PA_Dat ($8011) 1 Date format 'E' or 'A' (European, American)PA_Map ($8012) 1 PipeDream map 'Y' or 'N'PA_Msz ($8013) 1 Map size in pixelsPA_Dir ($8014) 12 Default directoryPA_Dev ($8015) 16 Default device
Serial port values
Symbol (reason code) Size MeaningPA_Txb ($8016) 2 (or 1) Transmit baud rate - binaryPA_Rxb ($8017) 2 (or 1) Receive baud rate - binaryPA_Xon ($8018) 1 Xon/Xoff 'Y' or 'N'PA_Par ($8019) 1 Parity 'O', 'E', 'M', 'S' or 'N'PA_Mdm ($801A) 1 Transmission protocol (reserved for Imp-Export, OZ 5.0 and newer)
Printer Editor values (highlights & translation tables)
Symbol (reason code) Size MeaningPA_Ptr ($8020) 9 Printer namePA_Alf ($8021) 1 Allow Linefeed, 'Y' or 'N'PA_Pon ($8022) 31 (max) Printer On sequencePA_Pof ($8023) 31 (max) Printer Off sequencePA_Eop ($8024) 31 (max) End of page sequencePA_Mip ($8025) 31 (max) HMI prefix sequencePA_Mis ($8026) 31 (max) HMI suffix sequencePA_Mio ($8027) 31 (max) HMI offset sequence
Highlight bases
PA_On1 ($8028) UnderlinePA_On2 ($802C) BoldPA_On3 ($8030) Extended sequencePA_On4 ($8034) ItalicsPA_On5 ($8038) SubscriptPA_On6 ($803C) SuperscriptPA_On7 ($8040) Alternate fontPA_On8 ($8044) User Defined
Translations
Symbol (reason code) MeaningPA_Tr1 ($8048) Row 1, Entry APA_Tr2 ($804A) BPA_Tr3 ($804C) CPA_Tr4 ($804E) Row 2, Entry APA_Tr5 ($8050) BPA_Tr6 ($8052) CPA_Tr7 ($8054) Row 3, Entry APA_Tr8 ($8056) BPA_Tr9 ($8058) CISO translations 1 - 28 (International Z88 versions):
Symbol (reason code) MeaningPA_Tr10 ($8080) Row 1, Entry 1 (ISO 1)PA_Tr11 ($8082) 2 (ISO 2)PA_Tr12 ($8084) 3 (ISO 3)PA_Tr13 ($8086) 4PA_Tr14 ($8088) 5PA_Tr15 ($808A) 6PA_Tr16 ($808C) 7PA_Tr17 ($808E) 8PA_Tr18 ($8090) Row 2, Entry 1PA_Tr19 ($8092) 2PA_Tr20 ($8094) 3PA_Tr21 ($8096) 4PA_Tr22 ($8098) 5PA_Tr23 ($809A) 6PA_Tr24 ($809C) 7PA_Tr25 ($809E) 8PA_Tr26 ($80A0) Row 3, Entry 1PA_Tr27 ($80A2) 2PA_Tr28 ($80A4) 3PA_Tr29 ($80A6) 4PA_Tr30 ($80A8) 5PA_Tr31 ($80AA) 6PA_Tr32 ($80AC) 7PA_Tr33 ($80AE) 8PA_Tr34 ($80B0) Row 4, Entry 1PA_Tr35 ($80B2) 2PA_Tr36 ($80B4) 3PA_Tr37 ($80B6) 4PA_Tr38 ($80B8) 5PA_Tr39 ($80BA) 6PA_Tr40 ($80BC) 7PA_Tr41 ($80BE) 8
PA_Tr<n> will normally be one character long. If there are more characters in this sequence then the first character is replaced by the translation string, but the others are printed as well. PA_Tr38 to 41 have been added since OZ 4.7.
In addition to the Panel and Printer Editor, the following parameters can be set. They expect HL to point to a null-terminated string:
SP_Dev ($8C00) Set current deviceSP_Dir ($8C03) Set current directory Note: Use always a '/' in front of the path name, otherwise OS_Nq can crash when reading the parameter.SP_Fnm ($8C06) Set current name match