summaryrefslogtreecommitdiff
path: root/v4.0/src/CMD/EDLIN/EDLEQU.ASM
diff options
context:
space:
mode:
Diffstat (limited to 'v4.0/src/CMD/EDLIN/EDLEQU.ASM')
-rw-r--r--v4.0/src/CMD/EDLIN/EDLEQU.ASM156
1 files changed, 156 insertions, 0 deletions
diff --git a/v4.0/src/CMD/EDLIN/EDLEQU.ASM b/v4.0/src/CMD/EDLIN/EDLEQU.ASM
new file mode 100644
index 0000000..d60796d
--- /dev/null
+++ b/v4.0/src/CMD/EDLIN/EDLEQU.ASM
@@ -0,0 +1,156 @@
1 page 60,132 ;
2
3 .xlist
4 include DOSSYM.INC
5 include EDLSTDSW.INC
6 .list
7
8;======================= START OF SPECIFICATIONS =========================
9;
10; MODULE NAME: EDLEQU.SAL
11;
12; DESCRIPTIVE NAME: EQUATES FOR EDLIN
13;
14; FUNCTION: PROVIDES EQUATES FOR EDLIN. IT ALSO PROVIDES THE MACRO
15; VAL_YN.
16;
17; ENTRY POINT: NA
18;
19; INPUT: NA
20;
21; EXIT NORMAL: NA
22;
23; EXIT ERROR: NA
24;
25; INTERNAL REFERENCES:
26;
27; ROUTINE: VAL_YN - VALIDATES Y/N RESPONSES FROM THE KEYBOARD
28;
29; EXTERNAL REFERENCES:
30;
31; ROUTINE: NA
32;
33; NOTES: THIS MODULE IS TO BE PREPPED BY SALUT WITH THE "PR" OPTIONS.
34; LINK EDLIN+EDLCMD1+EDLCMD2+EDLMES+EDLPARSE
35;
36; REVISION HISTORY:
37;
38; AN000 VERSION 4.00 - REVISIONS MADE RELATE TO THE FOLLOWING:
39;
40; - IMPLEMENT SYSPARSE
41; - IMPLEMENT MESSAGE RETRIEVER
42; - IMPLEMENT DBCS ENABLING
43; - ENHANCED VIDEO SUPPORT
44; - EXTENDED OPENS
45; - SCROLLING ERROR
46;
47; COPYRIGHT: "MS DOS EDLIN UTILITY"
48; "VERSION 4.00 (C) COPYRIGHT 1988 Microsoft"
49;
50;======================= END OF SPECIFICATIONS ===========================
51
52
53
54
55
56
57COMAND_LINE_LENGTH EQU 128
58QUOTE_CHAR EQU 16H ;Quote character = ^V
59CR EQU 13
60STKSIZ EQU 200h
61STACK equ stksiz
62
63asian_blk equ 40h ;an000;asian blank 2nd. byte
64dbcs_lead_byte equ 81h ;an000;asian blank lead byte
65nul equ 00h ;an000;nul character
66Access_Denied equ 0005h ;an000;extended error code for access denied
67
68;======== Y/N validation equates =========================================
69
70yn_chk equ 23h ;an000;check for Y/N response
71max_len equ 01h ;an000;max. len. for Y/N char.
72yes equ 01h ;an000;boolean yes value
73no equ 00h ;an000;boolean no value
74
75;======== text display values for initialization =========================
76
77video_get equ 0fh ;an000;int 10 get video attributes
78video_set equ 00h ;an000;int 10 set video attributes
79video_text equ 03h ;an000;80 X 25 color monitor
80
81;======== code page values for functions =================================
82
83get_set_cp equ 66h ;an000;get or set code page
84get_cp equ 01h ;an000;get active code page
85set_cp equ 02h ;an000;set active code page
86
87;======== screen length & width defaults =================================
88
89std_out equ 01h ;an000;console output
90display_attr equ 03h ;an000;display for IOCTL
91Get_Display equ 7fh ;an000;Get display for IOCTL
92Def_Disp_Len equ 25 ;an000;default display length
93Def_Disp_Width equ 80 ;an000;default display width
94
95;======== extended open equates ==========================================
96
97rw equ 0082h ;an000;read/write
98 ; compatibility
99 ; noinherit
100 ; int 24h handler
101 ; no commit
102
103ext_read equ 0080h ;an000;read
104 ; compatibility
105 ; noinherit
106 ; int 24h handler
107 ; no commit
108
109rw_flag equ 0101h ;an000;fail if file not exist
110 ; open if file exists
111 ; don't validate code page
112
113creat_flag equ 0110h ;an000;create if file does not exist
114 ; fail if file exists
115 ; don't validate code page
116
117open_flag equ 0101h ;an000;fail if file not exist
118 ; open if file exists
119 ; don't validate code page
120
121creat_open_flag equ 0112h ;an000;create if file does not exist
122 ; open/replace if file exists
123 ; don't validate code page
124
125attr equ 00h ;an000;attributes set to 0
126
127;======== parse value equates ============================================
128
129nrm_parse_exit equ 0ffffh ;an000;normal exit from sysparse
130too_many equ 01h ;an000;too many parms entered
131op_missing equ 02h ;an000;required operand missing
132sw_missing equ 03h ;an000;not a valid switch
133
134
135;======== Strucs =========================================================
136
137Display_Buffer_Struc Struc ;an000;dms;
138
139 Display_Info_Level db ? ;an000;dms;
140 Display_Reserved db ? ;an000;dms;
141 Display_Buffer_Size dw ? ;an000;dms;
142 Display_Flags dw ? ;an000;dms;
143 Display_Mode db ? ;an000;dms;
144 ; TEXT=01
145 ; APA =02
146 Display_Mode_Reserved db ? ;an000;dms;
147 Display_Colors dw ? ;an000;dms;# of colors
148 Display_Width_Pixels dw ? ;an000;dms;# of pixels in width
149 Display_Length_Pixels dw ? ;an000;dms;# of pixels in len.
150 Display_Width_Char dw ? ;an000;dms;# of chars in width
151 Display_Length_Char dw ? ;an000;dms;# of chars in length
152
153Display_Buffer_Struc ends ;an000;dms;
154
155
156 \ No newline at end of file