3 TITLE ASSPARM
.SAL - ASSIGN SYSTEM COMMAND LINE PARSER
4 ;****************** START OF SPECIFICATIONS *****************************
5 ; MODULE NAME: ASSGPARM.SAL
7 ; DESCRIPTIVE NAME: Include the DOS system PARSER in the SEGMENT
8 ; configuration expected by the modules of ASSIGN.
10 ;FUNCTION: The common code of the DOS command line PARSER is optimized by
11 ; the setting of certain switches that cause the conditional
12 ; assembly of only the required portions of the common PARSER.
13 ; The segment registers are ASSUMED according to the type .EXE.
15 ; ENTRY POINT: SYSPARSE, near
18 ; ES - has seg id of the SEGMENT
19 ; that contains the input control blocks,
22 ; DI - offset into ES of the PARMS INPUT BLOCK
24 ; DS - has seg id of the SEGMENT
25 ; that contains the DOS input COMMAND
26 ; string, which is originally presented at 81h
29 ; SI - offset into DS of the text of the DOS input COMMAND string
30 ; as originally presented at 81H in the PSP.
34 ; CX - ordinal value, intially zero, updated on each subsequent call
35 ; to the value returned in CX on the previous call.
37 ; CS - points to the segment containing the
38 ; INCLUDE PARSE.SAL statement
40 ; DS - also points to the segment containing the INCLUDE
41 ; PARSE.SAL statement.
43 ; EXIT-NORMAL: Output registers:
45 ; RC_No_Error equ 0 ; No error
46 ; RC_EOL equ -1 ; End of command line
48 ; DX - Offset into ES of the selected RESULT BLOCK.
49 ; BL - terminated delimiter code
50 ; CX - new operand ordinal
51 ; SI - set past scanned operand
53 ; EXIT-ERROR: Output registers:
55 ; RC_Too_Many equ 1 ; Too many operands
56 ; RC_Op_Missing equ 2 ; Required operand missing
57 ; RC_Not_In_SW equ 3 ; Not in switch list provided
58 ; RC_Not_In_Key equ 4 ; Not in keyword list provided
59 ; RC_Out_Of_Range equ 6 ; Out of range specified
60 ; RC_Not_In_Val equ 7 ; Not in value list provided
61 ; RC_Not_In_Str equ 8 ; Not in string list provided
62 ; RC_Syntax equ 9 ; Syntax error
64 ; INTERNAL REFERENCES:
65 ; ROUTINES: SYSPARSE:near (INCLUDEd in PARSE.SAL)
69 ; EXTERNAL REFERENCES:
72 ; DATA AREAS: control blocks pointed to by input registers.
75 ; This module should be processed with the ASMUT preprocessor
76 ; with the re-alignment not requested, as:
80 ; To assemble these modules, the sequential
81 ; ordering of segments may be used.
83 ; For LINK instructions, refer to the PROLOG of the main module,
86 ; REVISION HISTORY: A000 Version 4.00: add PARSER, System Message Handler,
88 ; COPYRIGHT: "Microsoft DOS ASSIGN Utility"
89 ; "Version 4.00 (C)Copyright 1988 Microsoft Corp"
90 ; "Licensed Material - Program Property of Microsoft "
92 ;****************** END OF SPECIFICATIONS *****************************
94 %
OUT COMPONENT
=ASSIGN
, MODULE
=ASSPARM
.SAL...
96 ; = = = = = = = = = = = =
97 HEADER
<MACRO DEFINITION
>
98 ; = = = = = = = = = = = =
107 ; = = = = = = = = = = = =
108 HEADER
<SYSPARSE
- SYSTEM COMMAND LINE PARSER
> ; ;AN000;
109 CODE SEGMENT PARA
PUBLIC ; ;AN000;
110 ASSUME
CS:CODE,DS:CODE,ES:CODE,SS:CODE ; ;AN000;
112 PUBLIC SYSPARSE
;SUBROUTINE ENTRY POINT ;AN000;
114 CAPSW EQU
1 ;SUPPORT FILENAME TBL CAPS
115 FARSW EQU
0 ;PARSER CALL NEAR
116 FILESW EQU
0 ;CHECK FOR FILESPEC
117 DATESW EQU
0 ;SUPPRESS DATE CHECKING
118 TIMESW EQU
0 ;SUPPRESS TIME CHECKING
119 CMPXSW EQU
0 ;SUPPRESS CHECKING COMPLEX LIST
120 NUMSW EQU
0 ;SUPPRESS CHECKING NUMERIC VALUE
121 KEYSW EQU
0 ;SUPPRESS KEYWORD SUPPORT
122 VAL1SW EQU
0 ;SUPPRESS SUPPORT OF VALUE DEFINITION 1
123 VAL2SW EQU
0 ;SUPPRESS SUPPORT OF VALUE DEFINITION 2
124 VAL3SW EQU
1 ;SUPPORT OF VALUE DEFINITION 3
125 DRVSW EQU
0 ;SUPPORT OF DRIVE ONLY FORMAT
126 QUSSW EQU
0 ;SUPPRESS SUPPORT OF QUOTED STRING FORMAT
129 %
OUT COMPONENT
=ASSIGN
, SUBCOMPONENT
=PARSE
, MODULE
=PARSE
.ASM
...
130 %
OUT COMPONENT
=ASSIGN
, SUBCOMPONENT
=PARSE
, MODULE
=PSDATA
.INC...
133 ;PARSE WORK AREA & EQUATES