The Programmer's Guide to TRSDOS Version 6 - Tim Mann's Home ...
The Programmer's Guide to TRSDOS Version 6 - Tim Mann's Home ...
The Programmer's Guide to TRSDOS Version 6 - Tim Mann's Home ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
CONTROL<br />
Bit 7 Set if numeric values are <strong>to</strong> be accepted.<br />
Bit 6 Set if switch values are <strong>to</strong> be accepted.<br />
Bit 5 Set if string values are <strong>to</strong> be accepted.<br />
Bit 4 Set if the first character of NAME is accepted as an abbreviation for<br />
the parameter.<br />
Bits 0-3 Contain the length of the NAME field (1-15).<br />
NAME<br />
Contains the parameter name used <strong>to</strong> reference the parameter on the command line.<br />
This field must be in upper case.<br />
RESPONSE<br />
VECTOR<br />
Bits 7-5 Are set by @PARAM as appropriate <strong>to</strong> the type of entry made by the<br />
user.<br />
Bits 0-4 Contain the length of the string entry if a string was entered. A<br />
length of 0 is indicative of either a NULL string or a string longer<br />
than 31 characters. This can be differentiated by testing the first<br />
character of the string. If a double quote ("), then a NULL string<br />
was entered. Any other character indicates a string longer than 31<br />
characters which will be terminated by a (").<br />
This word is a pointer <strong>to</strong> the memory location that will receive the parsed value.<br />
It is filled in the same manner as that identified in the first format.<br />
Note: Caution is <strong>to</strong> be observed in the proper use of the enhanced mode when you<br />
have something like the following: ON and ONLY in the table; if ON islisted first,<br />
then ON, ONx, ONxx, etc will match. This is because the parsing s<strong>to</strong>ps as soon as<br />
the length of the table entry has been reached. Alternatives are <strong>to</strong> add an<br />
appending space <strong>to</strong> the table entry, or order the table ONLY followed by ON.<br />
See Chapter 8, the Appendix, USING THE SYSTEM PARAMETER SCANNER, for detailed<br />
information. <strong>The</strong> @PARAM pro<strong>to</strong>col is as follows:<br />
Registers Affected: AF, BC, HL.<br />
Entry:<br />
DE A pointer <strong>to</strong> the beginning of your parameter table.<br />
HL A pointer <strong>to</strong> the command line <strong>to</strong> parse.<br />
Exit:<br />
HL Returns pointing <strong>to</strong> the terminating character.<br />
Z Set if either no parameters found or valid parameters.<br />
NZ If a bad parameter was found.<br />
A Effective with 6.2.0, contains error code 44 on NZ return.<br />
7.6.59 @PAUSE SVC-16<br />
This SVC will suspend program execution and go in<strong>to</strong> a "wait" state for a period of time<br />
determined by your count. <strong>The</strong> delay is approximately 15 microseconds per count regardless<br />
of the system FAST/SLOW option.<br />
7-31